need nodejs for horizon on Red Hat
This commit is contained in:
parent
57e1607a90
commit
b9c742bb53
@ -61,6 +61,16 @@ class horizon(
|
||||
require => Package[$::horizon::params::http_service],
|
||||
}
|
||||
|
||||
define horizon_safe_package(){
|
||||
if ! defined(Package[$name]){
|
||||
@package { $name : }
|
||||
}
|
||||
}
|
||||
if $::operatingsystem == 'redhat' {
|
||||
horizon_safe_package { $horizon_additional_packages : }
|
||||
}
|
||||
|
||||
|
||||
File {
|
||||
require => Package['dashboard'],
|
||||
owner => $wsgi_user,
|
||||
|
@ -10,6 +10,7 @@ class horizon::params {
|
||||
$vhosts_file = '/etc/httpd/conf.d/ssl.conf'
|
||||
$http_modwsgi = 'mod_wsgi'
|
||||
$package_name = 'openstack-dashboard'
|
||||
$horizon_additional_packages = ['nodejs', 'nodejs-less']
|
||||
$httpd_listen_config_file = '/etc/httpd/conf.d/ports.conf'
|
||||
$local_settings_path = '/etc/openstack-dashboard/local_settings'
|
||||
$root_url = '/dashboard'
|
||||
|
Loading…
Reference in New Issue
Block a user