diff options
author | 2017-08-22 22:14:57 +0200 | |
---|---|---|
committer | 2017-08-22 22:16:04 +0200 | |
commit | e8fe3642e0e83c5480b1d980a295b04fa4bcae5f (patch) | |
tree | c6bef9541c73e60e07e4988ff492255d66c452f9 /patches/opnfv-fuel/0007-states-maas-Add-mcp.rsa.pub-to-authorized_keys.patch | |
parent | 33a0cd38130e1b8ff466572baa1b8f92ddc5aef3 (diff) |
p/fuel: states: maas: mcp.rsa.pub authorized key
Change-Id: Ifc1fafa0075d7032ee7d7e1e1d84759ab5baea76
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com:w
Signed-off-by: Guillermo Herrero <Guillermo.Herrero@enea.com>
Diffstat (limited to 'patches/opnfv-fuel/0007-states-maas-Add-mcp.rsa.pub-to-authorized_keys.patch')
-rw-r--r-- | patches/opnfv-fuel/0007-states-maas-Add-mcp.rsa.pub-to-authorized_keys.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/patches/opnfv-fuel/0007-states-maas-Add-mcp.rsa.pub-to-authorized_keys.patch b/patches/opnfv-fuel/0007-states-maas-Add-mcp.rsa.pub-to-authorized_keys.patch new file mode 100644 index 00000000..2393e145 --- /dev/null +++ b/patches/opnfv-fuel/0007-states-maas-Add-mcp.rsa.pub-to-authorized_keys.patch @@ -0,0 +1,32 @@ +From: Alexandru Avadanii <Alexandru.Avadanii@enea.com> +Date: Tue, 22 Aug 2017 22:04:28 +0200 +Subject: [PATCH] states/maas: Add mcp.rsa.pub to authorized_keys + +Add our mcp.rsa.pub RSA key to all nodes, including VCP VMs. +This is required for functest to be able to fetch openrc. + +While at it, add retry wrappers for more VCP VM state.sls calls. + +Change-Id: I34f79848c52e36de8d981055880321a081420874 +Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com> +Signed-off-by: Guillermo Herrero <Guillermo.Herrero@enea.com> +--- + mcp/config/states/maas | 7 +++++-- + 1 file changed, 5 insertions(+), 2 deletions(-) + +diff --git a/mcp/config/states/maas b/mcp/config/states/maas +index 52a9b77..600578f 100755 +--- a/mcp/config/states/maas ++++ b/mcp/config/states/maas +@@ -69,6 +69,9 @@ while [ $rc -ne 0 ]; do + sleep 5 + done + +-salt -C '* and not cfg01* and not mas01*' saltutil.sync_all +-salt -C '* and not cfg01* and not mas01*' state.apply salt ++wait_for "salt -C '* and not cfg01* and not mas01*' ssh.set_auth_key ${SUDO_USER} \ ++ $(awk 'NR==1{print $2}' $(eval echo ~${SUDO_USER}/.ssh/authorized_keys))" ++ ++wait_for "salt -C '* and not cfg01* and not mas01*' saltutil.sync_all" ++wait_for "salt -C '* and not cfg01* and not mas01*' state.apply salt" + wait_for "salt -C '* and not cfg01* and not mas01*' state.apply linux,ntp" |