Commit 281aa630 by Czémán Arnold

network: fix configurations warnings for Red Hat like distros

parent a4a27d0b
......@@ -34,7 +34,7 @@
#nfs:
# enabled: true
# server: 10.0.0.115
# server: 10.0.0.115
# network: 192.168.1.0/24
# directory: /datastore
......
#!/bin/bash
sed -i '/HWADDR=.*/d' /etc/sysconfig/network-scripts/ifcfg-vm
sed -i -e \$aNM_CONTROLLED=\"no\" /etc/sysconfig/network-scripts/ifcfg-vm
/bin/systemctl daemon-reload
ifup vm
systemctl restart firewall
systemctl restart dhcpd
exit 0
NETWORKING_IPV6=yes
IPV6FORWARDING=yes
......@@ -52,11 +52,20 @@ reload_firewall:
{% endif %}
{% if grains['os_family'] == 'RedHat' %}
net_config:
file.managed:
- name: /etc/sysconfig/network
- source: salt://network/files/network
- user: root
- group: root
- mode: 644
fix_dhcp:
cmd.script:
- name: salt://network/files/fix_dhcp.sh
- require:
- cmd: reload_firewall
- file: net_config
{% endif %}
isc-dhcp-server:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment