]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
add the macros directive to the slave.yml.j2 template
authorAlfredo Deza <adeza@redhat.com>
Thu, 5 Nov 2015 20:51:53 +0000 (15:51 -0500)
committerAlfredo Deza <adeza@redhat.com>
Thu, 5 Nov 2015 20:52:34 +0000 (15:52 -0500)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ansible/slave.yml.j2

index 5ec1855e57a2457310af988902df3a3ef7a2a853..db80405a69758f62b9559bb2b1465e5bd0afc608 100644 (file)
     - name: ensure the build dir has the right owner permissions
       file: path=/home/{{ jenkins_user }}/build state=directory owner={{ jenkins_user }}
 
+    - name: ensure the rpmmacros file exists to fix centos builds
+      template:
+         src: files/rpmmacros.j2
+         dest: "/home/{{ jenkins_user }}/.rpmmacros"
+         owner: "{{ jenkins_user }}"
+      when: ansible_pkg_mgr  == "yum"
+
     - name: Install RPM requirements
       sudo: yes
       yum: name={{ item }} state=present