]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Fixing errors in rgw playbook for Trusty 142/head
authorMatthew Rees <matthew.rees@secate.com>
Tue, 11 Nov 2014 09:07:41 +0000 (11:07 +0200)
committerMatthew Rees <matthew.rees@secate.com>
Tue, 11 Nov 2014 09:07:41 +0000 (11:07 +0200)
- We don’t need ceph-extra for trusty
- Enable multiverse repo for access to libapache2-mod-fastcgi
- Update cache before attempting to install packages to register
multiverse repo and only refresh cache once an hour to avoid delays in
the playbook
- Add wildcard to disabling default site as on Ubuntu it is 000_default
by…default

roles/ceph-radosgw/tasks/install_debian.yml

index d3d5f5890e5b9e5f260413655ab0e17cb99135dd..74c42f4adb315b1e858e519d2174d36fa0616493 100644 (file)
@@ -6,11 +6,20 @@
   apt_repository: >
     repo="deb http://ceph.com/packages/ceph-extras/debian {{ ansible_lsb.codename }} main"
     state=present
+  when: ansible_lsb.codename in ['natty', 'oneiric', 'precise', 'quantal', 'raring', 'sid', 'squeeze', 'wheezy']
 
+# Needed for Ubuntu 14.04 to have access to libapache2-mod-fastcgi
+- name: Enable multiverse repo for fastcgi package access
+  command: "apt-add-repository multiverse"
+  when: ansible_lsb.codename in ['trusty']
+
+# update_cache needed for step above
 - name: "Install Apache, fastcgi and Rados Gateway"
   apt: >
     pkg={{ item }}
     state=present
+    update_cache=yes
+    cache_valid_time=3600
   with_items:
     - apache2
     - libapache2-mod-fastcgi
@@ -50,7 +59,8 @@
   command: "{{ item }}"
   with_items:
     - a2ensite rgw.conf
-    - a2dissite default
+    - a2dissite *default
+  ignore_errors: True
   notify:
     - restart apache2