hecate: use atlas user for titan-24 ssh overrides

This commit is contained in:
Brad Stein 2026-04-04 19:09:53 -03:00
parent d2a5c11843
commit 19562d77f7
3 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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)"