diff options
author | grakiss <grakiss.wanglei@huawei.com> | 2015-09-14 10:49:05 +0800 |
---|---|---|
committer | grakiss <grakiss.wanglei@huawei.com> | 2015-09-15 12:29:03 +0800 |
commit | dd6e44a29d47ba25374ae74a3eacdcfedbfd1b7b (patch) | |
tree | c76f1cb3bc503a34cdb756d5787867530a1a51a4 /deploy/adapters/ansible/roles/ceph-deploy/templates | |
parent | b40d47e921a9af9685329ce8a4bfcdc2aa81af4a (diff) |
add ceph integration with compass
Change-Id: I92b0697cc29e65838e15c9d10a6b0871a4e752b6
Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
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> |