Create mon data dir before calling ceph-mon --mkfs
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
This commit is contained in:
parent
d1e074afd0
commit
904fb27f0d
@ -41,6 +41,7 @@ execute 'ceph-mon mkfs' do
|
|||||||
command <<-EOH
|
command <<-EOH
|
||||||
set -e
|
set -e
|
||||||
mkdir -p /var/run/ceph
|
mkdir -p /var/run/ceph
|
||||||
|
mkdir -p /var/lib/ceph/mon/ceph-#{node['hostname']}
|
||||||
# TODO chef creates doesn't seem to suppressing re-runs, do it manually
|
# TODO chef creates doesn't seem to suppressing re-runs, do it manually
|
||||||
if [ -e '/var/lib/ceph/mon/ceph-#{node["hostname"]}/done' ]; then
|
if [ -e '/var/lib/ceph/mon/ceph-#{node["hostname"]}/done' ]; then
|
||||||
echo 'ceph-mon mkfs already done, skipping'
|
echo 'ceph-mon mkfs already done, skipping'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user