Commit 7458e028 by Czémán Arnold

fwdriver, network, storagedriver: fix fwdriver, fix cent os dhcp server problems…

fwdriver, network, storagedriver: fix fwdriver, fix cent os dhcp server problems with fix_dhcp.sh, storagedriver cent os 7 port
parent f1dd95d0
......@@ -36,4 +36,12 @@ firewall:
- present
- name: {{ pillar['fwdriver']['user'] }}
- gid_from_name: True
service:
- enabled
- require:
- service: firewall-init
firewall-init:
service:
- enabled
#!/bin/bash
sed -i '/HWADDR=.*/d' /etc/sysconfig/network-scripts/ifcfg-vm
ifup vm
systemctl restart dhcpd
exit 0
......@@ -8,8 +8,8 @@ vm:
- enabled: True
- type: eth
- proto: none
- ipaddr: {{ pillar['fwdriver']['vm_net'].split('/')[0] }}
- netmask: {{ pillar['fwdriver']['vm_net'].split('/')[1] }}
- ipaddr: {{ pillar['fwdriver']['vm_net_ip'] }}
- netmask: {{ pillar['fwdriver']['vm_net_mask'] }}
- pre_up_cmds:
{% if grains['os_family'] == 'RedHat' %}
- /bin/systemctl restart openvswitch
......@@ -32,3 +32,6 @@ salt://network/files/reload_firewall.sh:
- user: {{ pillar['user'] }}
- require:
- service: firewall2
salt://network/files/fix_dhcp.sh:
cmd.script
......@@ -2,11 +2,13 @@
nfs-server:
service:
{% if grains['os_family'] != 'RedHat' %}
- name: nfs-kernel-server
- name: nfs-kernel-server
{% endif %}
- running
- watch:
- file: /etc/exports
- running
- watch:
- file: /etc/exports
- require:
- service: rpcbind
pkg.installed:
{% if grains['os_family'] == 'RedHat' %}
- name: nfs-utils
......@@ -14,6 +16,10 @@ nfs-server:
- name: nfs-kernel-server
{% endif %}
rpcbind:
service:
- running
/etc/exports:
file.managed:
- template: jinja
......
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