Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CHEF
cookbooks
base
Commits
3e8dcf3d
Commit
3e8dcf3d
authored
Aug 16, 2017
by
Victor Penso
Browse files
Firewall configuration added
parent
68baf8a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/roles/slurmctld.rb
View file @
3e8dcf3d
...
...
@@ -102,9 +102,42 @@ default_attributes(
content:
'030340d651edb16efabf24a8c080d4b7'
,
action:
[
:nothing
],
notifies:
[
:restart
,
'systemd_unit[munge.service]'
]
},
##
# slurmctld firewall configuration
#
'/etc/firewalld/services/slurmctld.xml'
:
{
content:
'
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>slurmctld</short>
<description>SLURM Workload Manager</description>
<port protocol="udp" port="6817"/>
<port protocol="tcp" port="6817"/>
<port protocol="udp" port="6818"/>
<port protocol="tcp" port="6818"/>
<port protocol="udp" port="7321"/>
<port protocol="tcp" port="7321"/>
</service>
'
,
notifies:
[
:run
,
'execute[firewall-cmd-add-slurmctld]'
]
}
},
##
# EXECUTE
#
execute:
{
'firewall-cmd-add-slurmctld'
:
{
command:
'
firewall-cmd --zone=public --add-service=slurmctld --permanent
firewall-cmd --reload
'
,
action:
[
:nothing
],
not_if:
[
'firewall-cmd --zone=public --query-service=slurmctld'
]
}
},
##
# PACKAGES
#
...
...
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