Alexandre Marangone 3dca84b734 Update ceph.conf template for RGW
Signed-off-by: Alexandre Marangone <alexandre.marangone@inktank.com>
2013-04-22 11:40:10 -07:00

19 lines
446 B
Ruby

raise "fsid must be set in config" if node["ceph"]["config"]['fsid'].nil?
raise "mon_initial_members must be set in config" if node["ceph"]["config"]['mon_initial_members'].nil?
mon_addresses = get_mon_addresses()
is_rgw = false
if node['roles'].include? 'ceph-radosgw'
is_rgw = true
end
template '/etc/ceph/ceph.conf' do
source 'ceph.conf.erb'
variables(
:mon_addresses => mon_addresses,
:is_rgw => is_rgw
)
mode '0644'
end