Tommi Virtanen 4b47db95bf Move ceph/* to top-level.
This repository used to be a collection of several cookbooks, but this
hasn't been true for a month, since
a77b418b95df8f2b6f56d9a90e47dc62100cdf4d. Simplifies the file layout
and makes this look more like your usual cookbook.

Thanks to Guilhem Lettron <guilhem@lettron.fr>
2012-07-09 15:46:52 -07:00

13 lines
346 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()
template '/etc/ceph/ceph.conf' do
source 'ceph.conf.erb'
variables(
:mon_addresses => mon_addresses
)
mode '0644'
end