Enable SSH access for ansible-role-jobs

Here we are generating SSH keys for the jenkins user. This give the
ability for Ansible to SSH to localhost to provision functional tests.

We do not want to use root hence the reason for not using the existing
macro.

Change-Id: I2c0283c7547cfd1c98b8cc6bbafbe4a75f2b98bb
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger
2015-12-12 21:15:52 -05:00
parent 0ed1587691
commit 037d4395ca

View File

@@ -19,6 +19,12 @@
builders:
- zuul-git-prep
- shell: |
# Allow Jenkins user to ssh into localhost
ssh-keygen -f ~/.ssh/id_rsa -N ""
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
ssh-keyscan localhost >> ~/.ssh/known_hosts
ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts
- tox:
envlist: ansible-functional