Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
salt
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
281aa630
authored
Apr 05, 2016
by
Czémán Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
network: fix configurations warnings for Red Hat like distros
parent
a4a27d0b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
2 deletions
+13
-2
pillar/installer.sls
+1
-1
salt/network/files/fix_dhcp.sh
+1
-1
salt/network/files/network
+2
-0
salt/network/init.sls
+9
-0
No files found.
pillar/installer.sls
View file @
281aa630
...
...
@@ -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
...
...
salt/network/files/fix_dhcp.sh
View file @
281aa630
#!/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
salt/network/files/network
0 → 100644
View file @
281aa630
NETWORKING_IPV6=yes
IPV6FORWARDING=yes
salt/network/init.sls
View file @
281aa630
...
...
@@ -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:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment