Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce user modifiable variables instead of fixed-names of Ceph keyring files for external Ceph functionality. Change-Id: I1a33b3f9d6eca5babf53b91187461e43aef865ce
- Loading branch information
Showing
14 changed files
with
204 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,29 @@ | ||
--- | ||
- name: Copy over ceph files | ||
- name: Copy over ceph.conf for Glance | ||
template: | ||
src: "{{ node_custom_config }}/glance/ceph.conf" | ||
dest: "{{ node_config_directory }}/glance-api/ceph.conf" | ||
mode: "0660" | ||
become: true | ||
when: inventory_hostname in groups['glance-api'] | ||
notify: | ||
- Restart glance-api container | ||
|
||
- name: Copy over ceph Glance keyring | ||
copy: | ||
src: "{{ item }}" | ||
dest: "{{ node_config_directory }}/glance-api/" | ||
src: "{{ node_custom_config }}/glance/{{ ceph_glance_keyring }}" | ||
dest: "{{ node_config_directory }}/glance-api/{{ ceph_glance_keyring }}" | ||
mode: "0660" | ||
become: true | ||
when: | ||
- glance_services['glance-api'].host_in_groups | bool | ||
- glance_services['glance-api'].enabled | bool | ||
with_fileglob: | ||
- "{{ node_custom_config }}/glance/ceph*" | ||
when: inventory_hostname in groups['glance-api'] | ||
notify: | ||
- Restart glance-api container | ||
|
||
- name: Ensuring config directory has correct owner and permission | ||
file: | ||
path: "{{ node_config_directory }}/{{ item }}" | ||
path: "{{ node_config_directory }}/glance-api" | ||
recurse: yes | ||
owner: "{{ config_owner_user }}" | ||
group: "{{ config_owner_group }}" | ||
become: true | ||
when: | ||
- glance_services[item].host_in_groups | bool | ||
- glance_services[item].enabled | bool | ||
with_items: | ||
- "glance-api" | ||
when: inventory_hostname in groups['glance-api'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.