File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
ansible/roles/compute_init Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -151,24 +151,25 @@ a new image:
151
151
3 . Add metadata to a compute node e.g. via Horizon to turn on compute-init
152
152
playbook functionality.
153
153
154
- 4 . Fake an image build to deploy the compute-init playbook:
154
+ 4 . Stop ansible-init from running
155
+
156
+ ansible all -ba "systemctl stop ansible-init"
157
+
158
+ 5 . Fake an image build to deploy the compute-init playbook:
155
159
156
160
ansible-playbook ansible/fatimage.yml --tags compute_init
157
161
158
162
NB: This will also re-export the compute hostvars, as the nodes are not
159
163
in the builder group, which conveniently means any changes made to that
160
164
play also get picked up.
161
165
162
- 5 . Fake a reimage of compute to run ansible-init and the compute-init playbook:
163
-
164
- On compute node where metadata was added:
166
+ 6 . Fake a reimage of compute to run ansible-init and the updated compute-init playbook:
165
167
166
- [root@rl9-compute-0 rocky]# rm -f /var/lib/ansible-init.done && systemctl restart ansible-init
167
- [root@rl9-compute-0 rocky]# systemctl status ansible-init
168
+ ansible all -ba "rm -f /var/lib/ansible-init.done && systemctl restart ansible-init"
168
169
169
170
Use ` systemctl status ansible-init ` to view stdout/stderr from Ansible.
170
171
171
- Steps 4/5 can be repeated with changes to the compute script. If required,
172
+ Steps 4/5/6 can be repeated with changes to the compute script. If required,
172
173
reimage the compute node(s) first as in step 2 and/or add additional metadata
173
174
as in step 3.
174
175
You can’t perform that action at this time.
0 commit comments