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:
parent
3d6ae3fa9c
commit
74d25ccdcd
2 changed files with 10 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue