Create mon data dir before calling ceph-mon --mkfs

Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
This commit is contained in:
Alexandre Marangone 2013-03-25 12:42:19 -07:00
parent d1e074afd0
commit 904fb27f0d

View File

@ -41,6 +41,7 @@ execute 'ceph-mon mkfs' do
command <<-EOH
set -e
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
if [ -e '/var/lib/ceph/mon/ceph-#{node["hostname"]}/done' ]; then
echo 'ceph-mon mkfs already done, skipping'