Commit 4d519aac authored by Victor Penso's avatar Victor Penso
Browse files

SLURM test system

parent 3dc05553
......@@ -91,6 +91,7 @@ default_attributes(
# PACKAGES
#
yum_package: {
'nfs-utils': {},
'slurm': {},
'slurm-munge': {}
}
......
......@@ -62,6 +62,9 @@ default_attributes(
# EXECUTE
#
execute: {
##
# Open the firewall for the SLURM service
#
'firewall-cmd-add-slurmctld': {
command: '
firewall-cmd --zone=public --add-service=slurmctld --permanent
......@@ -69,14 +72,25 @@ default_attributes(
',
action: [ :nothing ],
not_if: [ 'firewall-cmd --zone=public --query-service=slurmctld' ]
}
},
##
# Open firewall for the NFS service
#
'firwall-cmd-add-nfs':{
command: '
firewall-cmd --permanent --add-service=nfs
firewall-cmd --permanent --add-service=mountd
firewall-cmd --permanent --add-service=rpc-bind
firewall-cmd --reload
',
not_if: [ 'firewall-cmd --zone=public --query-service=nfs' ]
}
},
##
# PACKAGES
#
yum_package: {
'nfs-utils': {},
'slurm-slurmdbd': {}
},
......
......@@ -18,6 +18,53 @@ default_attributes(
# SYSTEM SERVICES
#
systemd_unit: {
##
# SLURM service
#
'slurmd.service': { action: [:enable] },
##
# Mount the SLURM configuration
#
'etc-slurm.mount': {
content: '
[Unit]
Description=Mount SLURM configuration
Wants=network-online.target
After=network-online.target
[Mount]
What=lxrm01.devops.test:/etc/slurm
Where=/etc/slurm
Type=nfs
Options=ro,nosuid
TimeoutSec=10s
[Install]
WantedBy=multi-user.target
',
action: [:create, :enable, :start]
},
##
# Mount the shared network storage
#
'network.mount': {
content: '
[Unit]
Description=Mount network storage
Wants=network-online.target
After=network-online.target
[Mount]
What=lxrm01.devops.test:/network
Where=/network
Type=nfs
Options=rw,nosuid
TimeoutSec=10s
[Install]
WantedBy=multi-user.target
',
action: [:create, :enable, :start]
}
}
)
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 to comment