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

22 lines
507 B
Ruby

release_or_autobuild = node["ceph_branch"].nil? ? "release" : "autobuild"
execute "add autobuild gpg key to apt" do
command <<-EOH
wget -q -O- https://raw.github.com/ceph/ceph/master/keys/#{release_or_autobuild}.asc \
| sudo apt-key add -
EOH
end
template '/etc/apt/sources.list.d/ceph.list' do
owner 'root'
group 'root'
mode '0644'
source 'apt-sources-list.release.erb'
variables(
:codename => node[:lsb][:codename],
:branch => node["ceph_branch"]
)
end
execute 'apt-get update'