Fix auto uuid generation

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
pull/152/head
Sébastien Han 2014-11-14 15:07:58 +01:00
parent 9104762137
commit 621df22a4a
2 changed files with 7 additions and 3 deletions

2
.gitignore vendored
View File

@ -1,4 +1,4 @@
.vagrant
*.vdi
*.keyring
fetch/4a158d27-f750-41d5-9e7f-26ce4c9d2d45
fetch/*

View File

@ -23,11 +23,15 @@
register: socket
- name: Generate cluster UUID
shell: "uuidgen | tee /etc/ceph/ceph_cluster_uuid.conf" creates=/etc/ceph/ceph_cluster_uuid.conf
shell: uuidgen | tee fetch/ceph_cluster_uuid.conf creates=fetch/ceph_cluster_uuid.conf
connection: local
sudo: false
register: cluster_uuid
- name: Read cluster UUID if it already exists
command: cat /etc/ceph/ceph_cluster_uuid.conf removes=/etc/ceph/ceph_cluster_uuid.conf
command: cat fetch/ceph_cluster_uuid.conf removes=fetch/ceph_cluster_uuid.conf
connection: local
sudo: false
register: cluster_uuid
- name: Generate Ceph configuration file