]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
create the jenkins-build user
authorAlfredo Deza <adeza@redhat.com>
Thu, 9 Jul 2015 13:06:45 +0000 (09:06 -0400)
committerAlfredo Deza <adeza@redhat.com>
Fri, 17 Jul 2015 21:23:27 +0000 (17:23 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ansible/master/ansible-jenkins/tasks/config.yml

index 802ad374a33f2d5f0c536e21624787c478f86e04..f32c8819848b58074b4f430409c3a0a7136b352e 100644 (file)
@@ -53,7 +53,7 @@
     mode: 0644
 
 - name: Tell SELinux that we should allow Nginx to talk to Jenkins
-  shell: setsebool -P httpd_can_network_connect 1
+  seboolean: name=httpd_can_network_connect state=yes persistent=yes
 
 - name: copy JJB config file to {{ jenkins_jobs }}
   synchronize:
   notify:
     - 'restart jenkins'
 
+- name: create a jenkins-build user
+  user:
+    name: jenkins-build
+    comment: "Jenkins Build Slave User"
+
+- name: Create .ssh directory
+  file:
+    path: /home/jenkins-build/.ssh
+    state: directory
+
+- name: set the authorized keys '{{ playbook_dir }}/ansible-jenkins/files/ssh/keys/jenkins_build.pub'
+  authorized_key:
+    user: jenkins-build
+    key: "{{ lookup('file', 'ssh/keys/jenkins_build.pub') }}"
+  tags: fix
+