Skip to content

Commit 2b9068d

Browse files
committed
fix rebuild to do installs during fatimage
1 parent 04e622f commit 2b9068d

File tree

5 files changed

+30
-21
lines changed

5 files changed

+30
-21
lines changed

ansible/fatimage.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,12 @@
108108
tasks_from: install.yml
109109
when: "'mysql' in group_names"
110110

111-
- name: OpenHPC
111+
- name: Install rebuild
112+
include_role:
113+
name: rebuild
114+
tasks_from: install.yml
115+
116+
- name: Install OpenHPC
112117
import_role:
113118
name: stackhpc.openhpc
114119
tasks_from: install.yml
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
3+
- name: Create /etc/openstack
4+
file:
5+
path: /etc/openstack
6+
state: directory
7+
owner: slurm
8+
group: root
9+
mode: u=rX,g=rwX
10+
11+
- name: Copy out clouds.yaml
12+
copy:
13+
src: "{{ rebuild_clouds_path }}"
14+
dest: /etc/openstack/clouds.yaml
15+
owner: slurm
16+
group: root
17+
mode: u=r,g=rw
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- name: Setup slurm tools
2+
include_role:
3+
name: slurm_tools
Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,4 @@
11
---
22

3-
- name: Create /etc/openstack
4-
file:
5-
path: /etc/openstack
6-
state: directory
7-
owner: slurm
8-
group: root
9-
mode: u=rX,g=rwX
10-
11-
- name: Copy out clouds.yaml
12-
copy:
13-
src: "{{ rebuild_clouds_path }}"
14-
dest: /etc/openstack/clouds.yaml
15-
owner: slurm
16-
group: root
17-
mode: u=r,g=rw
18-
19-
- name: Setup slurm tools
20-
include_role:
21-
name: slurm_tools
3+
- include_tasks: install.yml
4+
- include_tasks: configure.yml

ansible/slurm.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717
- rebuild
1818
- openhpc
1919
tasks:
20-
- import_role:
20+
- include_role:
2121
name: rebuild
22+
tasks_from: "{{ 'configure.yml' if appliances_mode == 'configure' else 'main.yml' }}"
2223

2324
- name: Set locked memory limits on user-facing nodes
2425
hosts:

0 commit comments

Comments
 (0)