Guilhem Lettron 1bc3a36bf2 Suppress usage of roles by using attributes
re-add FC023 and fix problem linked to it...
TODO: refactor provider client. Last failure come from this place
2014-02-06 11:17:03 +01:00

19 lines
441 B
Ruby

fail "fsid must be set in config" if node["ceph"]["config"]['fsid'].nil?
fail "mon_initial_members must be set in config" if node["ceph"]["config"]['mon_initial_members'].nil?
directory "/etc/ceph" do
owner "root"
group "root"
mode "0755"
action :create
end
template '/etc/ceph/ceph.conf' do
source 'ceph.conf.erb'
variables(
:mon_addresses => mon_addresses,
:is_rgw => node['ceph']['is_radosgw']
)
mode '0644'
end