]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ansible: Install python-pip from epel on centos slaves 1114/head
authorDavid Galloway <dgallowa@redhat.com>
Tue, 4 Sep 2018 17:43:41 +0000 (13:43 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Tue, 4 Sep 2018 17:50:23 +0000 (13:50 -0400)
I'm not sure why we're just now seeing this.  Perhaps it was manually
fixed on prado.ceph.com and a redeploy overwrote it?  Regardless
non-libvirt slaves are failing to join Jenkins currently.

Signed-off-by: David Galloway <dgallowa@redhat.com>
ansible/examples/slave.yml
ansible/slave.yml

index 39af74fbe715ea4535e55e08e624e492ce10ede2..a1601d401e793156fcfd156c129ddc389dc408d5 100644 (file)
         group: "{{ jenkins_user }}"
         recurse: yes
 
+    - name: Install epel repo
+      yum:
+        name: epel-release
+        state: latest
+      when: ansible_os_family == "RedHat"
+
+    - name: disable epel for now
+      lineinfile:
+        path: "/etc/yum.repos.d/epel.repo"
+        regexp: '^enabled=.*'
+        line: 'enabled=0'
+      when: ansible_os_family == "RedHat"
+
     - name: Install RPM requirements
       yum:
         name: "{{ item }}"
         - epel-release
         - java-1.8.0-openjdk
         - git
-        - python-pip
         - python-virtualenv
         - libtool
         #- rpm-sign
 
     - name: install packages from epel
       yum:
-        name: jq
+        name: "{{ item }}"
         state: present
         enablerepo: epel
         update_cache: yes
+      with_items:
+        - jq
+        - python-pip
       when: ansible_os_family == "RedHat"
 
     # Run the equivalent of "apt-get update" as a separate step
index 39af74fbe715ea4535e55e08e624e492ce10ede2..a1601d401e793156fcfd156c129ddc389dc408d5 100644 (file)
         group: "{{ jenkins_user }}"
         recurse: yes
 
+    - name: Install epel repo
+      yum:
+        name: epel-release
+        state: latest
+      when: ansible_os_family == "RedHat"
+
+    - name: disable epel for now
+      lineinfile:
+        path: "/etc/yum.repos.d/epel.repo"
+        regexp: '^enabled=.*'
+        line: 'enabled=0'
+      when: ansible_os_family == "RedHat"
+
     - name: Install RPM requirements
       yum:
         name: "{{ item }}"
         - epel-release
         - java-1.8.0-openjdk
         - git
-        - python-pip
         - python-virtualenv
         - libtool
         #- rpm-sign
 
     - name: install packages from epel
       yum:
-        name: jq
+        name: "{{ item }}"
         state: present
         enablerepo: epel
         update_cache: yes
+      with_items:
+        - jq
+        - python-pip
       when: ansible_os_family == "RedHat"
 
     # Run the equivalent of "apt-get update" as a separate step