1219aab898
The package name of ironic-ui in Ubnutu/Debian does not follow the general naming rule and the existing horizon::dashboard can't be used. Closes-Bug: #2033929 Change-Id: I7703550897c6b31f2b45ffce75f0ab2bae7a4157
56 lines
1.7 KiB
Puppet
56 lines
1.7 KiB
Puppet
#
|
|
# 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: horizon::dashboards::ironic
|
|
#
|
|
# Manage parameters of ironic-dashboard
|
|
#
|
|
# === Parameters:
|
|
#
|
|
class horizon::dashboards::ironic() {
|
|
|
|
include horizon::deps
|
|
include horizon::params
|
|
|
|
# The horizon class should be included so that some common parameters
|
|
# can be picked here.
|
|
if ! defined(Class[horizon]) {
|
|
fail('The horizon class should be included before the horizon::dashboards::ironic class')
|
|
}
|
|
|
|
$log_handlers = $::horizon::log_handlers
|
|
$log_level = $::horizon::log_level
|
|
|
|
$config_file = "${::horizon::params::conf_d_dir}/_2299_baremetal_settings.py"
|
|
|
|
package { 'ironic-dashboard':
|
|
ensure => $::horizon::package_ensure,
|
|
name => $::horizon::params::ironic_dashboard_package_name,
|
|
tag => ['openstack', 'horizon-package'],
|
|
}
|
|
|
|
concat { $config_file:
|
|
mode => '0640',
|
|
owner => $::horizon::params::wsgi_user,
|
|
group => $::horizon::params::wsgi_group,
|
|
require => File[$::horizon::params::conf_d_dir],
|
|
tag => ['django-config'],
|
|
}
|
|
|
|
concat::fragment { '_2299_baremetal_settings.py':
|
|
target => $config_file,
|
|
content => template('horizon/_2299_baremetal_settings.py.erb'),
|
|
order => '50',
|
|
}
|
|
}
|