Need to install keystone packages in nova-common
Also structured cookbook like our other nova cookbooks
This commit is contained in:
		@@ -24,18 +24,10 @@ class ::Chef::Recipe
 | 
			
		||||
  include ::Openstack
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
platform_options = node["cinder"]["platform"]
 | 
			
		||||
 | 
			
		||||
platform_options["cinder_api_packages"].each do |pkg|
 | 
			
		||||
  package pkg do
 | 
			
		||||
    action :upgrade
 | 
			
		||||
    options platform_options["package_overrides"]
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
service "cinder-api" do
 | 
			
		||||
  service_name platform_options["cinder_api_service"]
 | 
			
		||||
  supports :status => true, :restart => true
 | 
			
		||||
 | 
			
		||||
  action :enable
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
@@ -51,5 +43,6 @@ template "/etc/cinder/api-paste.ini" do
 | 
			
		||||
    "identity_endpoint" => identity_endpoint,
 | 
			
		||||
    "identity_admin_endpoint" => identity_admin_endpoint
 | 
			
		||||
  )
 | 
			
		||||
 | 
			
		||||
  notifies :restart, resources(:service => "cinder-api"), :immediately
 | 
			
		||||
end
 | 
			
		||||
 
 | 
			
		||||
@@ -30,11 +30,22 @@ else
 | 
			
		||||
  node.set_unless["cinder"]["service_pass"] = secure_password
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
platform_options = node["cinder"]["platform"]
 | 
			
		||||
 | 
			
		||||
platform_options["cinder_api_packages"].each do |pkg|
 | 
			
		||||
  package pkg do
 | 
			
		||||
    options platform_options["package_overrides"]
 | 
			
		||||
 | 
			
		||||
    action :upgrade
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
directory "/etc/cinder" do
 | 
			
		||||
  action :create
 | 
			
		||||
  group node["cinder"]["group"]
 | 
			
		||||
  owner node["cinder"]["user"]
 | 
			
		||||
  mode  00700
 | 
			
		||||
 | 
			
		||||
  action :create
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
db_user = node["cinder"]["db"]["username"]
 | 
			
		||||
@@ -60,6 +71,7 @@ template "/etc/cinder/cinder.conf" do
 | 
			
		||||
    :glance_host => glance_api_endpoint.host,
 | 
			
		||||
    :glance_port => glance_api_endpoint.port
 | 
			
		||||
  )
 | 
			
		||||
 | 
			
		||||
  notifies :restart, resources(:service => "cinder-api"), :immediately
 | 
			
		||||
  notifies :restart, resources(:service => "cinder-scheduler"), :immediately
 | 
			
		||||
  notifies :restart, resources(:service => "cinder-volume"), :immediately
 | 
			
		||||
 
 | 
			
		||||
@@ -24,13 +24,15 @@ platform_options = node["cinder"]["platform"]
 | 
			
		||||
 | 
			
		||||
platform_options["cinder_scheduler_packages"].each do |pkg|
 | 
			
		||||
  package pkg do
 | 
			
		||||
    action :upgrade
 | 
			
		||||
    options platform_options["package_overrides"]
 | 
			
		||||
 | 
			
		||||
    action :upgrade
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
service "cinder-scheduler" do
 | 
			
		||||
  service_name platform_options["cinder_scheduler_service"]
 | 
			
		||||
  supports :status => true, :restart => true
 | 
			
		||||
 | 
			
		||||
  action [ :enable, :start ]
 | 
			
		||||
end
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user