Skip to content

Commit 984be6e

Browse files
committed
update docs for compute-init dev
1 parent 06ae09b commit 984be6e

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

ansible/roles/compute_init/README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -151,24 +151,25 @@ a new image:
151151
3. Add metadata to a compute node e.g. via Horizon to turn on compute-init
152152
playbook functionality.
153153

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:
155159

156160
ansible-playbook ansible/fatimage.yml --tags compute_init
157161

158162
NB: This will also re-export the compute hostvars, as the nodes are not
159163
in the builder group, which conveniently means any changes made to that
160164
play also get picked up.
161165

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:
165167

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"
168169

169170
Use `systemctl status ansible-init` to view stdout/stderr from Ansible.
170171

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,
172173
reimage the compute node(s) first as in step 2 and/or add additional metadata
173174
as in step 3.
174175

0 commit comments

Comments
 (0)