diff --git a/configs/hecate.tethys.yaml b/configs/hecate.tethys.yaml index 04991a4..ab44955 100644 --- a/configs/hecate.tethys.yaml +++ b/configs/hecate.tethys.yaml @@ -29,7 +29,7 @@ ssh_node_hosts: titan-22: 192.168.22.22 titan-24: 192.168.22.26 ssh_node_users: - titan-24: tethys + titan-24: atlas ssh_managed_nodes: - titan-db - titan-0a diff --git a/configs/hecate.titan-db.yaml b/configs/hecate.titan-db.yaml index 697cac6..a0c0a7e 100644 --- a/configs/hecate.titan-db.yaml +++ b/configs/hecate.titan-db.yaml @@ -29,7 +29,7 @@ ssh_node_hosts: titan-22: 192.168.22.22 titan-24: 192.168.22.26 ssh_node_users: - titan-24: tethys + titan-24: atlas ssh_managed_nodes: - titan-db - titan-0a diff --git a/scripts/install.sh b/scripts/install.sh index a6e04e7..e7cffcd 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -180,6 +180,12 @@ migrate_hecate_config() { echo "[install] migrated runtime_safety_factor 1.10 -> 1.25 in ${CONF_DIR}/hecate.yaml" changed=1 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 role="$(read_hecate_role)"