commit | ad1cd1992bad905c0849ff0f8e55804096e1f1ce | [log] [tgz] |
---|---|---|
author | Tatyana Leontovich <tleontovich@mirantis.com> | Mon Apr 01 11:50:17 2019 +0300 |
committer | Tatyana Leontovich <tleontovich@mirantis.com> | Mon Apr 01 14:14:36 2019 +0300 |
tree | cb3f3f788c86c025fe39dbc04a923e830becc9c4 | |
parent | 82e945c6ddb6a676758657ae0b7cae2ba774ba1b [diff] [blame] |
Enable custom key Change-Id: I0c3b24970d52d6fe11318c604ea5a023bb74abd7
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 77bc8f4..a7fefa8 100644 --- a/tcp_tests/templates/cookied-cicd-k8s-calico-sl/salt.yaml +++ b/tcp_tests/templates/cookied-cicd-k8s-calico-sl/salt.yaml
@@ -13,3 +13,12 @@ {{SHARED.MACRO_CHECK_SALT_VERSION_ON_NODES()}} +- 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