@@ -143,35 +143,32 @@ a new image:
143143 additionally configure the control node to export compute hostvars over NFS.
144144 Check the cluster is up.
145145
146- 2 . Reimage the compute nodes:
146+ 2 . Optionally, reimage the compute nodes to reset services etc. :
147147
148148 ansible-playbook --limit compute ansible/adhoc/rebuild.yml
149149
150- 3 . Add metadata to a compute node e.g. via Horizon to turn on compute-init
151- playbook functionality.
150+ 3 . Add metadata to a compute node (directly via Horizon or via OpenTofu) to
151+ enable the new compute-init playbook functionality.
152152
153- 4 . Stop ansible-init from running
153+ 4 . Stop ansible-init from running:
154154
155155 ansible all -ba "systemctl stop ansible-init"
156156
157- 5 . Fake an image build to deploy the compute-init playbook:
157+ 5 . Fake an image build and rerunning the ` site.yml ` playbook:
158158
159- ansible-playbook ansible/fatimage .yml --tags compute_init
159+ ansible-playbook ansible/final .yml --tags compute_init
160160
161- NB: This will also re-export the compute hostvars, as the nodes are not
162- in the builder group, which conveniently means any changes made to that
163- play also get picked up.
161+ This both re-installs the compute-init playbook and re-configures the NFS
162+ share with exported compute hostvars etc.
164163
165- 6 . Fake a reimage of compute to run ansible-init and the updated compute-init playbook:
164+ 6 . Fake a reimage of compute nodes to re-run ansible-init and the updated
165+ compute-init playbook:
166166
167167 ansible all -ba "rm -f /var/lib/ansible-init.done && systemctl restart ansible-init"
168168
169- Use ` systemctl status ansible-init ` to view stdout/stderr from Ansible.
170-
171- Steps 4/5/6 can be repeated with changes to the compute script. If required,
172- reimage the compute node(s) first as in step 2 and/or add additional metadata
173- as in step 3.
169+ 7 . Use ` systemctl status ansible-init ` to view stdout/stderr from Ansible.
174170
171+ Steps 4-7 can be repeated with changes to the compute script until it works.
175172
176173## Design notes
177174- Duplicating code in roles into the ` compute-init ` script is unfortunate, but
0 commit comments