diff --git a/playbooks/health-check/dev-keys.yaml b/playbooks/health-check/dev-keys.yaml new file mode 100644 index 00000000..8d2d7d35 --- /dev/null +++ b/playbooks/health-check/dev-keys.yaml @@ -0,0 +1,14 @@ +--- +- hosts: all + tasks: + - name: Set dev ssh keys + when: inject_dev_ssh_keys | default(false) + block: + - name: Clone SF devs pub keys repo + ansible.builtin.git: + repo: https://softwarefactory-project.io/r/SF_devs_public_keys + dest: SF_devs_public_keys + + - name: Copy content to authorized keys + ansible.builtin.shell: | + cat SF_devs_public_keys/authorized_keys >> ~/.ssh/authorized_keys diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml index 9fb058d3..277d23e8 100644 --- a/zuul.d/jobs.yaml +++ b/zuul.d/jobs.yaml @@ -9,6 +9,7 @@ parent: sf-operator-microshift timeout: 3600 pre-run: + - playbooks/health-check/dev-keys.yaml - playbooks/health-check/dstat-pre.yaml post-run: - playbooks/health-check/dstat-post.yaml @@ -41,6 +42,7 @@ cloudprovider_dns: - 199.204.44.24 - 199.204.47.54 + inject_dev_ssh_keys: false - job: name: sf-operator-multinode