]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
set java conf for wheezy too 347/head
authorAlfredo Deza <adeza@redhat.com>
Thu, 31 Mar 2016 16:29:20 +0000 (12:29 -0400)
committerAlfredo Deza <adeza@redhat.com>
Thu, 31 Mar 2016 16:29:20 +0000 (12:29 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ansible/slave.yml
ansible/slave.yml.j2

index 2d1bf62b21dd166bf122170003eacbed612e737b..832ef9448c36bcbf74ce1e0c73b8d562f1601705 100644 (file)
         - libevent-dev
         - libffi-dev
       when: ansible_pkg_mgr  == "apt"
-      
+
     - name: correct java version selected
-      alternatives: name=java path=/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java  
-      when: ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'precise'
+      alternatives: name=java path=/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java
+      when:
+        (ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'precise') or
+        (ansible_distribution == 'Debian' and ansible_distribution_release == 'wheezy')
+
 
     - name: install python-jenkins
       sudo: true
index 3900d72340d7d47f5f80e69449f661e4eb218fe8..18a0b210329ad921872b4035f9b0d62f44899225 100644 (file)
 
     - name: correct java version selected
       alternatives: name=java path=/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java
-      when: ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'precise'
+      when:
+        (ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'precise') or
+        (ansible_distribution == 'Debian' and ansible_distribution_release == 'wheezy')
 
     - name: ensure the rpmmacros file exists to fix centos builds
       file: path="/home/{{ jenkins_user }}/.rpmmacros" owner="{{ jenkins_user }}" state=touch