File tree Expand file tree Collapse file tree 9 files changed +53
-42
lines changed Expand file tree Collapse file tree 9 files changed +53
-42
lines changed Original file line number Diff line number Diff line change @@ -80,3 +80,5 @@ roles/*
80
80
! roles /slurm_stats /**
81
81
! roles /pytools /
82
82
! roles /pytools /**
83
+ ! roles /rebuild /
84
+ ! roles /rebuild /**
Original file line number Diff line number Diff line change
1
+ ---
2
+ openhpc_rebuild_clouds : ~/.config/openstack/clouds.yaml
Original file line number Diff line number Diff line change
1
+ ---
2
+
3
+ - name : Create /etc/openstack
4
+ file :
5
+ path : /etc/openstack
6
+ state : directory
7
+ owner : root
8
+ group : root
9
+ mode : ' 0400'
10
+
11
+ - name : Copy out clouds.yaml
12
+ copy :
13
+ src : " {{ openhpc_rebuild_clouds }}"
14
+ dest : /etc/openstack/clouds.yaml
15
+ owner : root
16
+ group : root
17
+ mode : ' 0400'
18
+
19
+ - name : Setup slurm tools
20
+ include_role :
21
+ name : slurm_tools
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 9
9
- include_role :
10
10
name : mysql
11
11
12
+ - name : Setup slurm-driven rebuild
13
+ hosts : rebuild
14
+ become : yes
15
+ tags :
16
+ - rebuild
17
+ tasks :
18
+ - import_role :
19
+ name : rebuild
20
+
12
21
- name : Setup slurm
13
22
hosts : openhpc
14
23
become : yes
Original file line number Diff line number Diff line change 1
1
[basic_users:children]
2
2
cluster
3
3
4
- [rebuild:children]
5
- control
6
- compute
7
-
8
4
[etc_hosts:children]
9
5
cluster
10
6
@@ -35,3 +31,6 @@ builder
35
31
[sssd:children]
36
32
# Install sssd into fat image
37
33
builder
34
+
35
+ [rebuild:children]
36
+ control
Original file line number Diff line number Diff line change @@ -31,10 +31,17 @@ openhpc_packages_extra: []
31
31
openhpc_packages : " {{ openhpc_packages_default + openhpc_packages_extra }}"
32
32
openhpc_munge_key : " {{ vault_openhpc_mungekey | b64decode }}"
33
33
openhpc_login_only_nodes : login
34
- openhpc_config_default :
35
- SlurmctldParameters :
36
- - enable_configless
37
- TaskPlugin : task/cgroup,task/affinity
34
+ openhpc_config_default : >-
35
+ {{
36
+ {
37
+ 'SlurmctldParameters': ['enable_configless'] +
38
+ (['reboot_from_controller'] if groups['rebuild'] | length > 0 else []),
39
+ 'TaskPlugin': 'task/cgroup,task/affinity'
40
+ }
41
+ | combine(
42
+ {'RebootProgram': '/opt/slurm-tools/bin/slurm-openstack-rebuild'} if groups['rebuild'] | length > 0 else {}
43
+ )
44
+ }}
38
45
openhpc_config_extra : {}
39
46
openhpc_config : " {{ openhpc_config_default | combine(openhpc_config_extra, list_merge='append') }}"
40
47
openhpc_state_save_location : " {{ appliances_state_dir + '/slurmctld' if appliances_state_dir is defined else '/var/spool' }}"
Original file line number Diff line number Diff line change 62
62
# All hosts requiring control of SELinux status.
63
63
cluster
64
64
65
- [rebuild]
66
- # Enable rebuild of nodes on an OpenStack cloud; add 'control' group plus 'compute' group or a subset of it.
67
-
68
65
[update]
69
66
# All hosts to (optionally) run yum update on.
70
67
@@ -165,3 +162,6 @@ extra_packages
165
162
166
163
[pulp]
167
164
# Add builder to this group to enable automatically syncing of pulp during image build
165
+
166
+ [rebuild]
167
+ # Enable rebuild of nodes on an OpenStack cloud; add 'control' group plus 'compute' group or a subset of it.
Original file line number Diff line number Diff line change @@ -25,8 +25,6 @@ control
25
25
[filebeat:children]
26
26
slurm_stats
27
27
28
- # NB: [rebuild] not defined here as this template is used in CI
29
-
30
28
[update:children]
31
29
32
30
[fail2ban:children]
@@ -111,3 +109,5 @@ control
111
109
[extra_packages:children]
112
110
# Hosts to install specified additional packages on
113
111
builder
112
+
113
+ # NB: [rebuild] not defined here as this template is used in CI
You can’t perform that action at this time.
0 commit comments