From: Alfredo Deza Date: Tue, 21 Jul 2015 00:53:32 +0000 (-0400) Subject: bring parity for slave playbook X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d4cfb00262970ba576fee865d97f3eeadbfab1bb;p=ceph-build.git bring parity for slave playbook Signed-off-by: Alfredo Deza --- diff --git a/ansible/slave.yml b/ansible/slave.yml index 773edb79..9f38d5b6 100644 --- a/ansible/slave.yml +++ b/ansible/slave.yml @@ -81,3 +81,18 @@ - 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' diff --git a/ansible/slave.yml.j2 b/ansible/slave.yml.j2 index bacc5d01..bcc7901c 100644 --- a/ansible/slave.yml.j2 +++ b/ansible/slave.yml.j2 @@ -87,6 +87,7 @@ - python-pip - python-virtualenv when: ansible_pkg_mgr == "apt" + - name: install python-jenkins sudo: true pip: name=python-jenkins