Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
salt
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
17
Merge Requests
1
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9c4024a5
authored
Mar 24, 2016
by
Czémán Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
network: modify state order with define requirements
parent
32bc05f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
salt/network/init.sls
+13
-2
No files found.
salt/network/init.sls
View file @
9c4024a5
...
...
@@ -28,16 +28,20 @@ firewall2:
- require:
- network: vm
salt://network/files/reload_firewall.sh
:
reload_firewall
:
cmd.script:
- name: salt://network/files/reload_firewall.sh
- template: jinja
- user: {{ pillar['user'] }}
- require:
- service: firewall2
{% if grains['os_family'] == 'RedHat' %}
salt://network/files/fix_dhcp.sh
:
fix_dhcp
:
cmd.script
- name: salt://network/files/fix_dhcp.sh
- require:
- script: reload_firewall
{% endif %}
isc-dhcp-server:
...
...
@@ -48,6 +52,13 @@ isc-dhcp-server:
{% endif %}
- enable: True
- reload: True
{% if grains['os_family'] == 'RedHat' %}
- watch:
- script: fix_dhcp
{% elif grains['os'] == 'Debian' %}
- watch:
- cmd: fix_dhcp_daemon_reload
{% endif %}
{% if grains['os'] == 'Debian' %}
{# For next reboot #}
...
...
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