diff options
| author | SamYaple <sam@yaple.net> | 2016-02-16 16:41:44 +0000 |
|---|---|---|
| committer | SamYaple <sam@yaple.net> | 2016-02-16 18:08:03 +0000 |
| commit | 81f5b2ac79a5e2a7811bb873e190e80484a901bc (patch) | |
| tree | 82e7977599e06fc82484951490e7e0d06e2b8e11 | |
| parent | a71c9cbacd2372201059d6d309f4593ae92a4d46 (diff) | |
| download | kolla-81f5b2ac79a5e2a7811bb873e190e80484a901bc.tar.gz kolla-81f5b2ac79a5e2a7811bb873e190e80484a901bc.zip | |
Use "optional" for ceph confs
Also add missing cinder-backup ceph.conf info
TrivialFix
Change-Id: I2b2d85c2d34908a9b11198eb51b3cf359a06bdf7
| -rw-r--r-- | ansible/roles/cinder/templates/cinder-backup.json.j2 | 14 | ||||
| -rw-r--r-- | ansible/roles/cinder/templates/cinder-volume.json.j2 | 10 |
2 files changed, 20 insertions, 4 deletions
diff --git a/ansible/roles/cinder/templates/cinder-backup.json.j2 b/ansible/roles/cinder/templates/cinder-backup.json.j2 index 578e4ad80..2210fbb1c 100644 --- a/ansible/roles/cinder/templates/cinder-backup.json.j2 +++ b/ansible/roles/cinder/templates/cinder-backup.json.j2 @@ -6,6 +6,20 @@ "dest": "/etc/cinder/cinder.conf", "owner": "cinder", "perm": "0600" + }, + { + "source": "{{ container_config_directory }}/ceph.client.cinder-backup.keyring", + "dest": "/etc/ceph/ceph.client.cinder-backup.keyring", + "owner": "cinder", + "perm": "0600", + "optional": "true" + }, + { + "source": "{{ container_config_directory }}/ceph.conf", + "dest": "/etc/ceph/ceph.conf", + "owner": "cinder", + "perm": "0600", + "optional": "true" } ] } diff --git a/ansible/roles/cinder/templates/cinder-volume.json.j2 b/ansible/roles/cinder/templates/cinder-volume.json.j2 index 700ba3f39..531843b37 100644 --- a/ansible/roles/cinder/templates/cinder-volume.json.j2 +++ b/ansible/roles/cinder/templates/cinder-volume.json.j2 @@ -6,18 +6,20 @@ "dest": "/etc/cinder/cinder.conf", "owner": "cinder", "perm": "0600" - }{% if enable_ceph | bool %}, + }, { "source": "{{ container_config_directory }}/ceph.client.cinder.keyring", "dest": "/etc/ceph/ceph.client.cinder.keyring", "owner": "cinder", - "perm": "0600" + "perm": "0600", + "optional": "true" }, { "source": "{{ container_config_directory }}/ceph.conf", "dest": "/etc/ceph/ceph.conf", "owner": "cinder", - "perm": "0600" - }{% endif %} + "perm": "0600", + "optional": "true" + } ] } |
