ceph-common: use a generic way to create uuid

as reported in #510 some systems don't have uuidgen installed so we
better use a more global way to generate it. It sounds like python
should be available in case uuidgen is not.
Otherwise we will have to find another way :)

closes #510

Signed-off-by: Sébastien Han <seb@redhat.com>
pull/511/head
Sébastien Han 2016-02-02 11:23:28 +01:00
parent 456e937d1e
commit 5ef844988e
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@
run_once: true
- name: generate cluster uuid
local_action: shell uuidgen | tee {{ fetch_directory }}/ceph_cluster_uuid.conf
local_action: shell python -c 'import uuid; print str(uuid.uuid4())' | tee {{ fetch_directory }}/ceph_cluster_uuid.conf
creates="{{ fetch_directory }}/ceph_cluster_uuid.conf"
register: cluster_uuid
sudo: false