basic authorized keys and key on jenkins_slave and master types.

These playbooks will need to be broken out into tasks and probably host-specific
instances for the persistent instance for the master
This commit is contained in:
Seth Vidal 2012-12-12 21:21:09 +00:00
parent 3d6ae3fa9c
commit 74d25ccdcd
2 changed files with 10 additions and 1 deletions

View file

@ -72,6 +72,11 @@
tags:
- config
- name: add jenkins ssh priv key so it can connect to clients
action: copy src=$private/files/jenkins/ssh/jenkins_master dest=/root/.ssh/id_rsa mode=600
tags:
- config
## Missing:
# Configuration of file jenkins : config.xml
# config.xml changes according to:

View file

@ -53,9 +53,13 @@
- config
- name: setup jenkins_slave user
action: user name=jenkins_slave state=present createhome=yes system=no password=${jenkins_slave_pw}
action: user name=jenkins_slave state=present createhome=yes system=no
tags:
- jenkinsuser
- name: setup jenkins_slave ssh key
action: authorized_key user=jenkins_slave key='$FILE($private/files/jenkins/ssh/jenkins_master.pub)'
- name: jenkins_slave to mock group
action: user name=jenkins_slave groups=mock