There is now a recipe - not really a new one, it's "vncproxy" with some attributes renamed - which handles the relevant packages and services (Debian names confirmed to have been valid at least since Jessie, Ubuntu and RHEL ones based on existing convention + review comments). Furthermore, nova.conf is now populated with required enpoint information - with hopefully sane default values of relevant attributes. Finally, the attribute node['openstack']['compute']['console_type'] can be used to enable the desired console type; it defaults to 'vnc' in accordance with default Nova configuration. Signed-off-by: Marek Szuba <m.szuba@gsi.de> Change-Id: I0996daddda6d21633930ba73e174f99775a9e0c9
40 lines
1.2 KiB
Ruby
40 lines
1.2 KiB
Ruby
#
|
|
# Cookbook:: openstack-compute
|
|
# Recipe:: spiceproxy
|
|
#
|
|
# Copyright:: 2012, Rackspace US, Inc.
|
|
# Copyright:: 2013, Craig Tracey <craigtracey@gmail.com>
|
|
# Copyright:: 2020, Oregon State University
|
|
# Copyright:: 2021, Marek Szuba <m.szuba@gsi.de>
|
|
#
|
|
# 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.
|
|
#
|
|
|
|
include_recipe 'openstack-compute::nova-common'
|
|
|
|
platform_options = node['openstack']['compute']['platform']
|
|
|
|
package platform_options['compute_spiceproxy_packages'] do
|
|
options platform_options['package_overrides']
|
|
action :upgrade
|
|
end
|
|
|
|
proxy_service = platform_options['compute_spiceproxy_service']
|
|
|
|
service proxy_service do
|
|
service_name proxy_service
|
|
supports status: true, restart: true
|
|
action [:enable, :start]
|
|
subscribes :restart, 'template[/etc/nova/nova.conf]'
|
|
end
|