From 5ef844988edab25ae26fcccd11b6ac8fe4631a54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Tue, 2 Feb 2016 11:23:28 +0100 Subject: [PATCH] ceph-common: use a generic way to create uuid MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- roles/ceph-common/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/ceph-common/tasks/main.yml b/roles/ceph-common/tasks/main.yml index 3764a95f1..aa844e414 100644 --- a/roles/ceph-common/tasks/main.yml +++ b/roles/ceph-common/tasks/main.yml @@ -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