hecate: use atlas user for titan-24 ssh overrides
This commit is contained in:
parent
d2a5c11843
commit
19562d77f7
@ -29,7 +29,7 @@ ssh_node_hosts:
|
|||||||
titan-22: 192.168.22.22
|
titan-22: 192.168.22.22
|
||||||
titan-24: 192.168.22.26
|
titan-24: 192.168.22.26
|
||||||
ssh_node_users:
|
ssh_node_users:
|
||||||
titan-24: tethys
|
titan-24: atlas
|
||||||
ssh_managed_nodes:
|
ssh_managed_nodes:
|
||||||
- titan-db
|
- titan-db
|
||||||
- titan-0a
|
- titan-0a
|
||||||
|
|||||||
@ -29,7 +29,7 @@ ssh_node_hosts:
|
|||||||
titan-22: 192.168.22.22
|
titan-22: 192.168.22.22
|
||||||
titan-24: 192.168.22.26
|
titan-24: 192.168.22.26
|
||||||
ssh_node_users:
|
ssh_node_users:
|
||||||
titan-24: tethys
|
titan-24: atlas
|
||||||
ssh_managed_nodes:
|
ssh_managed_nodes:
|
||||||
- titan-db
|
- titan-db
|
||||||
- titan-0a
|
- titan-0a
|
||||||
|
|||||||
@ -180,6 +180,12 @@ migrate_hecate_config() {
|
|||||||
echo "[install] migrated runtime_safety_factor 1.10 -> 1.25 in ${CONF_DIR}/hecate.yaml"
|
echo "[install] migrated runtime_safety_factor 1.10 -> 1.25 in ${CONF_DIR}/hecate.yaml"
|
||||||
changed=1
|
changed=1
|
||||||
fi
|
fi
|
||||||
|
if grep -Eq '^ssh_node_users:[[:space:]]*$' "${CONF_DIR}/hecate.yaml" \
|
||||||
|
&& grep -Eq '^ titan-24:[[:space:]]*tethys[[:space:]]*$' "${CONF_DIR}/hecate.yaml"; then
|
||||||
|
sed -Ei 's/^ titan-24:[[:space:]]*tethys[[:space:]]*$/ titan-24: atlas/' "${CONF_DIR}/hecate.yaml"
|
||||||
|
echo "[install] migrated ssh_node_users titan-24 override to atlas"
|
||||||
|
changed=1
|
||||||
|
fi
|
||||||
|
|
||||||
local role
|
local role
|
||||||
role="$(read_hecate_role)"
|
role="$(read_hecate_role)"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user