From d4cfb00262970ba576fee865d97f3eeadbfab1bb Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Mon, 20 Jul 2015 20:53:32 -0400 Subject: [PATCH] bring parity for slave playbook Signed-off-by: Alfredo Deza --- ansible/slave.yml | 15 +++++++++++++++ ansible/slave.yml.j2 | 1 + 2 files changed, 16 insertions(+) diff --git a/ansible/slave.yml b/ansible/slave.yml index 773edb797..9f38d5b63 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 bacc5d01c..bcc7901cb 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 -- 2.47.3