diff options
Diffstat (limited to 'deploy/adapters/ansible/roles/ceph-deploy/templates')
3 files changed, 21 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/ceph-deploy/templates/ceph.repo b/deploy/adapters/ansible/roles/ceph-deploy/templates/ceph.repo new file mode 100644 index 00000000..e6b7c7d9 --- /dev/null +++ b/deploy/adapters/ansible/roles/ceph-deploy/templates/ceph.repo @@ -0,0 +1,7 @@ +[ceph-noarch] +name=Ceph noarch packages +baseurl=http://ceph.com/rpm-giant/el6/noarch +enabled=1 +gpgcheck=1 +type=rpm-md +gpgkey=https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc diff --git a/deploy/adapters/ansible/roles/ceph-deploy/templates/clean_ceph.j2 b/deploy/adapters/ansible/roles/ceph-deploy/templates/clean_ceph.j2 new file mode 100644 index 00000000..a089167d --- /dev/null +++ b/deploy/adapters/ansible/roles/ceph-deploy/templates/clean_ceph.j2 @@ -0,0 +1,8 @@ +if [ -d "{{ ceph_cluster_dir[0] }}" ]; then +cd {{ ceph_cluster_dir[0] }} +ceph-deploy purge {{ ceph_cluster_hosts.stdout_lines[0] }} +ceph-deploy purgedata {{ ceph_cluster_hosts.stdout_lines[0] }} +ceph-deploy forgetkeys +cd .. +rm -r {{ ceph_cluster_dir[0] }} +fi diff --git a/deploy/adapters/ansible/roles/ceph-deploy/templates/secret.j2 b/deploy/adapters/ansible/roles/ceph-deploy/templates/secret.j2 new file mode 100644 index 00000000..a0ffc6e3 --- /dev/null +++ b/deploy/adapters/ansible/roles/ceph-deploy/templates/secret.j2 @@ -0,0 +1,6 @@ +<secret ephemeral='no' private='no'> + <uuid>{{ ceph_uuid.stdout_lines[0] }}</uuid> + <usage type='ceph'> + <name>client.cinder secret</name> + </usage> +</secret> |