Skip to content

Commit c20faac

Browse files
committed
remove rebuild group from everything layout - configure in generated inventory instead
1 parent 7d8cab6 commit c20faac

File tree

3 files changed

+1
-14
lines changed

3 files changed

+1
-14
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ Although most of the inventory uses the group convention described above there a
121121
- An inventory group `<cluster_name>_<partition_name>` defining the hosts it contains - these must be homogenous w.r.t CPU and memory.
122122
- An entry in the `openhpc_slurm_partitions` mapping in `environments/<environment>/inventory/group_vars/openhpc/overrides.yml`.
123123
See the [openhpc role documentation](https://github.com/stackhpc/ansible-role-openhpc#slurmconf) for more options.
124-
124+
- On an OpenStack cloud, rebuilding/reimaging compute nodes from Slurm can be enabled by defining a `rebuild` group containing the relevant compute hosts (e.g. in the generated `hosts` file).
125125

126126
## Adding new functionality
127127
TODO: this is just rough notes:

dev/vagrant-example-configure.sh

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,6 @@ echo "Running generate-passwords.yml"
1818

1919
ansible-playbook ansible/adhoc/generate-passwords.yml
2020

21-
echo "Mocking openstack command for rebuild functionality"
22-
# we don't need to mock the cloud file as it only needs to exist
23-
mkdir /tmp/vagrant-example
24-
cat > /tmp/vagrant-example/openstack <<EOL
25-
#!/usr/bin/bash
26-
echo "fake openstack command"
27-
EOL
28-
chmod u+x /tmp/vagrant-example/openstack
29-
export PATH=/tmp/vagrant-example:$PATH
30-
3121
echo "Running site.yml"
3222

3323
ansible-playbook -vvvv ansible/site.yml -e "openhpc_rebuild_clouds=/tmp/vagrant-example/openstack"

environments/common/layouts/everything

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,3 @@ control
3636

3737
[filebeat:children]
3838
slurm_stats
39-
40-
[rebuild:children]
41-
compute

0 commit comments

Comments
 (0)