Files
cookbook-openstack-network/recipes/server.rb
Alan Meadows a45270f9fe Support standalone services
* Do not include main plugin in server recipe and
everywhere else, so that we can manage services
with roles on independent servers
* Support an independent quantum api server not running
any of the agents or packages required by plugin
* Fix ordering issues with openvswitch-agent install.
* Try to unify platform_options names across
distributions.
* Introduce a common.rb for setting up templates
required by nearly everything, like quantum.conf.
* Plugin recipes now serve to only install any
additional components required

Change-Id: Ieb7c357baf882c9078dbdd577f53448af863c931
2013-08-06 09:34:40 -07:00

46 lines
1.4 KiB
Ruby

#
# Cookbook Name:: openstack-network
# Recipe:: server
#
# Copyright 2013, AT&T
# Copyright 2013, SUSE Linux GmbH
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
class ::Chef::Recipe
include ::Openstack
end
include_recipe "openstack-network::common"
platform_options = node["openstack"]["network"]["platform"]
driver_name = node["openstack"]["network"]["interface_driver"].split('.').last.downcase
main_plugin = node["openstack"]["network"]["interface_driver_map"][driver_name]
core_plugin = node["openstack"]["network"]["core_plugin"]
platform_options = node["openstack"]["network"]["platform"]
platform_options["quantum_server_packages"].each do |pkg|
package pkg do
options platform_options["package_overrides"]
action :install
end
end
service "quantum-server" do
service_name platform_options["quantum_server_service"]
supports :status => true, :restart => true
action :enable
end