Walter Huf 80250e5fba Installs the tgt gateway
Currently relies on the client.admin key being installed on the system
2014-01-09 15:14:12 -06:00

46 lines
1.6 KiB
Ruby

include_recipe "apt"
branch = node['ceph']['branch']
apt_repository "ceph-#{branch}" do
repo_name "ceph"
uri node['ceph']['debian'][branch]['repository']
distribution node['lsb']['codename'] == "jessie" ? "sid" : node['lsb']['codename']
components ['main']
key node['ceph']['debian'][branch]['repository_key']
end
if node['roles'].include?("ceph-tgt")
apt_repository "ceph-extras-#{branch}" do
repo_name "ceph-extras"
uri node['ceph']['debian']['extras']['repository']
distribution node['lsb']['codename'] == "jessie" ? "sid" : node['lsb']['codename']
components ['main']
key node['ceph']['debian']['extras']['repository_key']
end
end
if node['roles'].include?("ceph-radosgw") \
&& node["ceph"]["radosgw"]["webserver_companion"] == "apache2" \
&& node["ceph"]["radosgw"]["use_apache_fork"] == true
case node['lsb']['codename']
when "precise","oneiric"
apt_repository "ceph-apache2" do
repo_name "ceph-apache2"
uri "http://gitbuilder.ceph.com/apache2-deb-#{node['lsb']['codename']}-x86_64-basic/ref/master"
distribution node['lsb']['codename']
components ["main"]
key "https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/autobuild.asc"
end
apt_repository "ceph-modfastcgi" do
repo_name "ceph-modfastcgi"
uri "http://gitbuilder.ceph.com/libapache-mod-fastcgi-deb-#{node['lsb']['codename']}-x86_64-basic/ref/master"
distribution node['lsb']['codename']
components ["main"]
key "https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/autobuild.asc"
end
else
Log.info("Ceph's Apache and Apache FastCGI forks not available for this distribution")
end
end