File tree Expand file tree Collapse file tree 7 files changed +34
-62
lines changed
environments/common/inventory/group_vars/all Expand file tree Collapse file tree 7 files changed +34
-62
lines changed Original file line number Diff line number Diff line change 1+ - hosts : dnf_repos
2+ become : yes
3+ tasks :
4+ - name : Disable pulp repos
5+ ansible.builtin.include_role :
6+ name : dnf_repos
7+ tasks_from : disable_repos.yml
8+
9+ - name : Setup NFS export for compute_init
10+ hosts : compute_init:!builder
11+ # NB: done last so other roles can prepare configuration etc
12+ tags : compute_init
13+ become : yes
14+ tasks :
15+ - include_role :
16+ name : compute_init
17+ tasks_from : export.yml
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 7474 - name : Install additional packages
7575 dnf :
7676 name : " {{ appliances_extra_packages }}"
77-
78- - hosts : nhc
79- become : yes
80- tags : nhc
81- tasks :
82- - name : Configure node health checks
83- import_role :
84- name : nhc
85-
86- - name : Setup NFS export for compute_init
87- hosts : compute_init:!builder
88- # NB: done last so other orles can prepare configuration etc
89- tags : compute_init
90- become : yes
91- tasks :
92- - include_role :
93- name : compute_init
94- tasks_from : export.yml
Original file line number Diff line number Diff line change 101101 become : yes
102102 gather_facts : yes
103103 tasks :
104- # - import_playbook: slurm.yml:
105- - name : Setup DB
106- include_role :
107- name : mysql
108- tasks_from : install.yml
109- when : " 'mysql' in group_names"
110-
111- - name : OpenHPC
112- import_role :
113- name : stackhpc.openhpc
114- tasks_from : install.yml
115- when : " 'openhpc' in group_names"
104+ - import_playbook : slurm.yml
116105
117106 # - import_playbook: portal.yml
118107 - name : Open Ondemand server (packages)
257246 import_playbook : " {{ hook_path if hook_path | exists else 'noop.yml' }}"
258247 when : hook_path | exists
259248
260- - import_playbook : disable-repos .yml
249+ - import_playbook : after .yml
261250
262251- hosts : builder
263252 become : yes
Original file line number Diff line number Diff line change 2727- import_playbook : slurm.yml
2828- import_playbook : portal.yml
2929- import_playbook : monitoring.yml
30- - import_playbook : disable-repos .yml
30+ - import_playbook : after .yml
3131
3232- name : Run post.yml hook
3333 vars :
3737 import_playbook : " {{ hook_path if hook_path | exists else 'noop.yml' }}"
3838 when : hook_path | exists
3939
40- - name : Clean up and shutdown Packer VM
41- hosts : builder
42- gather_facts : no
43- become : yes
44- tasks :
45- - import_tasks : cleanup.yml
46- - community.general.shutdown :
47-
4840...
Original file line number Diff line number Diff line change 33- name : Setup DB
44 hosts : mysql
55 become : true
6- tags :
7- - mysql
6+ tags : mysql
87 tasks :
98 - include_role :
109 name : mysql
10+ tasks_from : " {{ 'install.yml' if appliances_mode == 'build' else 'main.yml' }}"
1111
1212- name : Setup slurm-driven rebuild
1313 hosts : rebuild:!builder
2020 name : rebuild
2121
2222- name : Set locked memory limits on user-facing nodes
23- hosts :
24- - compute
25- - login
23+ hosts : compute:login:!builder
2624 become : yes
27- tags :
28- - openhpc
25+ tags : openhpc
2926 tasks :
3027 - name : set memory limits
3128 lineinfile :
3431 line : " * soft memlock unlimited"
3532
3633- name : Block ssh to compute nodes for non-privileged users without running jobs
37- hosts : compute
34+ hosts : compute:!builder
3835 become : yes
3936 tags :
4037 - openhpc
5754- name : Setup slurm
5855 hosts : openhpc
5956 become : yes
60- tags :
61- - openhpc
57+ tags : openhpc
6258 tasks :
6359 - include_role :
6460 name : stackhpc.openhpc
65- tasks_from : " {{ 'runtime.yml' if appliances_mode == 'configure' else 'main.yml' }}"
61+ tasks_from : " {{ _openhpc_task_file[appliances_mode] | default('main.yml') }}"
62+ vars :
63+ _openhpc_task_file :
64+ build : install.yml
65+ configure : runtime.yml
6666
6767- name : Setup Node Health Checks
6868 # Has to be done here as it requires openhpc repos etc for installation
69- hosts : nhc
69+ hosts : nhc:!builder
7070 become : yes
71- tags :
72- - nhc
71+ tags : nhc
7372 tasks :
7473 - include_role :
7574 name : nhc
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ openhpc_state_save_location: "{{ appliances_state_dir + '/slurmctld' if applianc
3939openhpc_config_extra : {}
4040
4141# default additional slurm.conf parameters for the appliance:
42- openhpc_config_appliance_default :
42+ openhpc_config_default :
4343 SlurmctldParameters :
4444 - enable_configless
4545 TaskPlugin : task/cgroup,task/affinity
You can’t perform that action at this time.
0 commit comments