galstrom21 899ec191c9 Normalizing this cookbook
This cookbook needed to be brought up to the standard of the other
cookbooks in the repo.

* Adding .gitreview
* Normalizing .rubocop.yml
* Normalizing Gemfile
* Normalizing metadata.rb
* Normalizing .gitignore
* Adding specs/ directory and spec_helper.rb
* Fixed all rubocop errors

Change-Id: Ica7c525aae5fbd5c441ce50cff36046c678046d6
Partial-Bug: 1348243
2014-07-24 14:18:31 -05:00

21 lines
454 B
Ruby

# encoding: UTF-8
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