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
37b73a36
Commit
37b73a36
authored
Aug 14, 2017
by
Victor Penso
Browse files
Slurm master
parent
0f0ebf00
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/roles/slurmctld.rb
View file @
37b73a36
...
...
@@ -3,11 +3,29 @@ description 'Slurm Cluster Controller deployment'
run_list
(
'recipe[base]'
)
default_attributes
(
##
# Groups
#
group:
{
slurm:
{}
},
##
# USERS
#
user:
{
##
# User to operate the Slurm services
#
slurm:
{
home:
'/var/lib/slurm'
,
group:
'slurm'
,
shell:
'/bin/bash'
,
comment:
'SLURM workload manager'
},
##
# Slurm cluster users
#
spock:
{
uid:
1111
,
home:
'/network/spock'
,
...
...
@@ -34,7 +52,12 @@ default_attributes(
# DIRECTORIES
#
directory:
{
###
##
# For the Slurm services
#
'/var/spool/slurm/ctld'
:
{
owner:
'slurm'
,
recursive:
true
},
'/var/log/slurm'
:
{
owner:
'slurm'
},
##
# Create directories used for NFS export
#
'/etc/slurm'
:
{},
...
...
@@ -83,7 +106,12 @@ default_attributes(
##
# PACKAGES
#
package:
[
'nfs-utils'
,
'slurm'
],
yum_package:
[
'nfs-utils'
,
'slurm'
,
'slurm-slurmdbd'
,
'slurm-munge'
],
##
# SYSTEM SERVICES
...
...
@@ -91,6 +119,7 @@ default_attributes(
systemd_unit:
{
'nfs-server.service'
:
{
action:
[
:enable
,
:start
]
},
'munge.service'
:
{
action:
[
:enable
,
:start
]
},
'slurmctld.service'
:
{
action:
[
:enable
]
}
'slurmctld.service'
:
{
action:
[
:enable
]
},
'slurmdbd.service'
:
{
action:
[
:enable
]}
}
)
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