Update users and keys during upgrade-mcp-release
Update system users and their ssh keys during mcp-upgrade procedure,
as they can be changed or updated and it can affect access to cloud.
Change-Id: I8c93e5f1496d64df8bb04b010a62ae982a596d3d
Related-Prod: PROD-26465 (PROD:26465)
diff --git a/upgrade-mcp-release.groovy b/upgrade-mcp-release.groovy
index aa8b076..5803d59 100644
--- a/upgrade-mcp-release.groovy
+++ b/upgrade-mcp-release.groovy
@@ -293,6 +293,10 @@
triggerMirrorJob("git-mirror-downstream-pipeline-library")
}
+ // updating users and keys
+ salt.enforceState(venvPepper, "I@linux:system", 'linux.system.user', true)
+ salt.enforceState(venvPepper, "I@linux:system", 'openssh', true)
+
salt.enforceState(venvPepper, "I@jenkins:client", 'jenkins.client', true)
salt.cmdRun(venvPepper, "I@salt:master", "salt -C 'I@jenkins:client and I@docker:client' state.sls docker.client --async")