commit | 82e945c6ddb6a676758657ae0b7cae2ba774ba1b | [log] [tgz] |
---|---|---|
author | Tatyana Leontovich <tleontovich@mirantis.com> | Fri Mar 29 19:05:39 2019 +0200 |
committer | Tatyana Leontovich <tleontovich@mirantis.com> | Fri Mar 29 19:07:46 2019 +0200 |
tree | 2e4290a6836d84be81953d39a1444c9b7016e486 | |
parent | 1192aa45caa837578ac96d191ebce4ad827fd439 [diff] |
Share key access from cfg node Change-Id: I95a4552d84f8f79d59c71fa4486bc153c1571523
diff --git a/tcp_tests/templates/cookied-cicd-k8s-calico-sl/salt.yaml b/tcp_tests/templates/cookied-cicd-k8s-calico-sl/salt.yaml index 70bf54d..77bc8f4 100644 --- a/tcp_tests/templates/cookied-cicd-k8s-calico-sl/salt.yaml +++ b/tcp_tests/templates/cookied-cicd-k8s-calico-sl/salt.yaml
@@ -12,3 +12,4 @@ {{SHARED.MACRO_CHECK_SALT_VERSION_SERVICES_ON_CFG()}} {{SHARED.MACRO_CHECK_SALT_VERSION_ON_NODES()}} +
diff --git a/tcp_tests/templates/shared-salt.yaml b/tcp_tests/templates/shared-salt.yaml index e19b15c..e269d50 100644 --- a/tcp_tests/templates/shared-salt.yaml +++ b/tcp_tests/templates/shared-salt.yaml
@@ -1137,6 +1137,16 @@ retry: {count: 1, delay: 10} skip_fail: false +- description: "Share custom key from cfg to give each node acces with key from cfg01" + cmd: | + set -e; + set -x; + key=$(ssh-keygen -y -f /root/.ssh/id_rsa); + salt '*' cmd.run "echo $key >> /root/.ssh/authorized_keys"; + node_name: {{ HOSTNAME_CFG01 }} + retry: {count: 1, delay: 5} + skip_fail: true + {%- endmacro %}