Skip to content

Commit fd043ab

Browse files
committed
add docs to experimental/compute-init
1 parent 9f27c7d commit fd043ab

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/experimental/compute-init.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@
22

33
See the role README.md
44

5+
# Changes to image / tofu state
6+
7+
When a compute group has ignore_image_changes set as true in a compute group
8+
partition within tofu/main.tf, and the image is updated:
9+
10+
Subsequent changes to the tf cluster_image variable for that compute group don’t
11+
actually result in a change via tofu plan/apply. This is done with the
12+
lifecycle meta-argument "ignore_changes" in the compute resource.
13+
14+
As part of compute-init, the image_id is templated out to hostvars so that
15+
ansible will have image_id for each compute node.
16+
17+
WIP: Attempts to change the cluster image from tofu then act as a target
18+
for compute-init to read and rebuild to via slurm control.
19+
520
# CI workflow
621

722
The compute node rebuild is tested in CI after the tests for rebuilding the

0 commit comments

Comments
 (0)