diff options
| author | Jenkins <jenkins@review.openstack.org> | 2015-11-26 11:51:05 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2015-11-26 11:51:05 +0000 |
| commit | 359f8e83d673eea083b704f9746ec2207eaa66dd (patch) | |
| tree | 66577d4b22578d919480d92c4ee758a68850f8b7 | |
| parent | 632eb2030f496fcf9421c21a8d290e485c3f1625 (diff) | |
| parent | 8c1e7061f877c2758b5229a12df771ad0ae8715d (diff) | |
| download | kolla-359f8e83d673eea083b704f9746ec2207eaa66dd.tar.gz kolla-359f8e83d673eea083b704f9746ec2207eaa66dd.zip | |
Merge "Remove the two different auth profiles"
| -rw-r--r-- | ansible/roles/cinder/tasks/ceph.yml | 24 | ||||
| -rw-r--r-- | ansible/roles/glance/tasks/ceph.yml | 12 | ||||
| -rw-r--r-- | ansible/roles/nova/tasks/ceph.yml | 12 |
3 files changed, 4 insertions, 44 deletions
diff --git a/ansible/roles/cinder/tasks/ceph.yml b/ansible/roles/cinder/tasks/ceph.yml index 5878ed86b..a2db0101a 100644 --- a/ansible/roles/cinder/tasks/ceph.yml +++ b/ansible/roles/cinder/tasks/ceph.yml @@ -29,41 +29,21 @@ pool_type: "{{ cinder_backup_pool_type }}" cache_mode: "{{ cinder_backup_cache_mode }}" -# TODO(SamYaple): Improve failed_when and changed_when tests -- name: Pulling cephx keyring for cinder - command: docker exec ceph_mon ceph auth get-or-create client.cinder mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool={{ ceph_cinder_pool_name }}, allow rwx pool={{ ceph_nova_pool_name }}, allow rx pool={{ ceph_glance_pool_name }}' - register: cephx_key_cinder - delegate_to: "{{ groups['ceph-mon'][0] }}" - changed_when: False - run_once: True - when: not ceph_enable_cache | bool - -# TODO(SamYaple): Improve failed_when and changed_when tests +# TODO(SamYaple): Improve changed_when tests - name: Pulling cephx keyring for cinder command: docker exec ceph_mon ceph auth get-or-create client.cinder mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool={{ ceph_cinder_pool_name }}, allow rwx pool={{ ceph_cinder_pool_name }}-cache, allow rwx pool={{ ceph_nova_pool_name }}, allow rwx pool={{ ceph_nova_pool_name }}-cache, allow rx pool={{ ceph_glance_pool_name }}, allow rx pool={{ ceph_glance_pool_name }}-cache' register: cephx_key_cinder delegate_to: "{{ groups['ceph-mon'][0] }}" changed_when: False run_once: True - when: ceph_enable_cache | bool - -# TODO(SamYaple): Improve failed_when and changed_when tests -- name: Pulling cephx keyring for cinder-backup - command: docker exec ceph_mon ceph auth get-or-create client.cinder-backup mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool={{ ceph_cinder_backup_pool_name }}' - register: cephx_key_cinder_backup - delegate_to: "{{ groups['ceph-mon'][0] }}" - changed_when: False - run_once: True - when: not ceph_enable_cache | bool -# TODO(SamYaple): Improve failed_when and changed_when tests +# TODO(SamYaple): Improve changed_when tests - name: Pulling cephx keyring for cinder-backup command: docker exec ceph_mon ceph auth get-or-create client.cinder-backup mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool={{ ceph_cinder_backup_pool_name }}, allow rwx pool={{ ceph_cinder_backup_pool_name }}-cache' register: cephx_key_cinder_backup delegate_to: "{{ groups['ceph-mon'][0] }}" changed_when: False run_once: True - when: ceph_enable_cache | bool - name: Pushing cephx keyring copy: diff --git a/ansible/roles/glance/tasks/ceph.yml b/ansible/roles/glance/tasks/ceph.yml index 2024ec6e1..cb031fa09 100644 --- a/ansible/roles/glance/tasks/ceph.yml +++ b/ansible/roles/glance/tasks/ceph.yml @@ -17,23 +17,13 @@ pool_type: "{{ glance_pool_type }}" cache_mode: "{{ glance_cache_mode }}" -# TODO(SamYaple): Improve failed_when and changed_when tests -- name: Pulling cephx keyring - command: docker exec ceph_mon ceph auth get-or-create client.glance mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool={{ ceph_glance_pool_name }}' - register: cephx_key - delegate_to: "{{ groups['ceph-mon'][0] }}" - changed_when: False - run_once: True - when: not ceph_enable_cache | bool - -# TODO(SamYaple): Improve failed_when and changed_when tests +# TODO(SamYaple): Improve changed_when tests - name: Pulling cephx keyring command: docker exec ceph_mon ceph auth get-or-create client.glance mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool={{ ceph_glance_pool_name }}, allow rwx pool={{ ceph_glance_pool_name }}-cache' register: cephx_key delegate_to: "{{ groups['ceph-mon'][0] }}" changed_when: False run_once: True - when: ceph_enable_cache | bool - name: Pushing cephx keyring copy: diff --git a/ansible/roles/nova/tasks/ceph.yml b/ansible/roles/nova/tasks/ceph.yml index 37ca882bf..f7fdf959a 100644 --- a/ansible/roles/nova/tasks/ceph.yml +++ b/ansible/roles/nova/tasks/ceph.yml @@ -23,23 +23,13 @@ pool_type: "{{ nova_pool_type }}" cache_mode: "{{ nova_cache_mode }}" -# TODO(SamYaple): Improve failed_when and changed_when tests -- name: Pulling cephx keyring for nova - command: docker exec ceph_mon ceph auth get-or-create client.nova mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool={{ ceph_cinder_pool_name }}, allow rwx pool={{ ceph_nova_pool_name }}, allow rx pool={{ ceph_glance_pool_name }}' - register: cephx_key - delegate_to: "{{ groups['ceph-mon'][0] }}" - changed_when: False - run_once: True - when: not ceph_enable_cache | bool - -# TODO(SamYaple): Improve failed_when and changed_when tests +# TODO(SamYaple): Improve changed_when tests - name: Pulling cephx keyring for nova command: docker exec ceph_mon ceph auth get-or-create client.nova mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool={{ ceph_cinder_pool_name }}, allow rwx pool={{ ceph_cinder_pool_name }}-cache, allow rwx pool={{ ceph_nova_pool_name }}, allow rwx pool={{ ceph_nova_pool_name }}-cache, allow rx pool={{ ceph_glance_pool_name }}, allow rx pool={{ ceph_glance_pool_name }}-cache' register: cephx_key delegate_to: "{{ groups['ceph-mon'][0] }}" changed_when: False run_once: True - when: ceph_enable_cache | bool # TODO(SamYaple): Improve failed_when and changed_when tests - name: Pulling cephx keyring for libvirt |
