-name 'ceph'
-maintainer 'Kyle Bader'
-maintainer_email 'kyle.bader@dreamhost.com'
-license 'Apache 2.0'
-description 'Installs/Configures the Ceph distributed filesystem'
-long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
-version '0.2.1'
+name 'ceph'
+maintainer 'Kyle Bader'
+maintainer_email 'kyle.bader@dreamhost.com'
+license 'Apache 2.0'
+description 'Installs/Configures the Ceph distributed filesystem'
+long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
+version '0.2.1'
depends 'apache2', '>= 1.1.12'
depends 'apt'
# osd/$cluster-$id)
# - $cluster should always be ceph
# - The --dmcrypt option will be available starting w/ Cuttlefish
- if !node['ceph']['osd_devices'].nil?
+ if node['ceph']['osd_devices']
devices = node['ceph']['osd_devices']
devices = Hash[(0...devices.size).zip devices] unless devices.kind_of? Hash
include_recipe 'ceph::conf'
-if !::File.exists?("/var/lib/ceph/radosgw/ceph-radosgw.#{node['hostname']}/done")
+if !::File.exist?("/var/lib/ceph/radosgw/ceph-radosgw.#{node['hostname']}/done")
if node['ceph']['radosgw']['webserver_companion']
include_recipe "ceph::radosgw_#{node["ceph"]["radosgw"]["webserver_companion"]}"
end