]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
bring parity for slave playbook
authorAlfredo Deza <adeza@redhat.com>
Tue, 21 Jul 2015 00:53:32 +0000 (20:53 -0400)
committerAlfredo Deza <adeza@redhat.com>
Tue, 21 Jul 2015 00:53:32 +0000 (20:53 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ansible/slave.yml
ansible/slave.yml.j2

index 773edb79709bc243cc74a1597ae18b8ebc0e9786..9f38d5b63690d76667c8b76e8ea372342bbcf080 100644 (file)
         - python-pip
         - python-virtualenv
       when: ansible_pkg_mgr  == "apt"
+
+    - name: install python-jenkins
+      sudo: true
+      pip: name=python-jenkins
+
+    - name: register the new slave to jenkins master
+      jenkins-node:
+        username: "{{ api_user }}"
+        uri: "{{ api_uri }}"
+        password: "{{ token }}"
+        name: "{{ nodename }}"
+        labels: "{{ labels }}"
+        host: "{{ ansible_default_ipv4.address }}"
+        credentialsId: 'c7098414-e0ba-4d97-892e-7122e01be8a8'
+        remoteFS: '/home/jenkins-build/build'
index bacc5d01c9772eb75592c1d8fa6a8400f8804841..bcc7901cb985a03b577b48ccb338ab05bae6338f 100644 (file)
@@ -87,6 +87,7 @@
         - python-pip
         - python-virtualenv
       when: ansible_pkg_mgr  == "apt"
+
     - name: install python-jenkins
       sudo: true
       pip: name=python-jenkins