need nodejs for horizon on Red Hat

This commit is contained in:
Matthew Mosesohn 2013-07-29 14:59:58 +04:00
parent 57e1607a90
commit b9c742bb53
2 changed files with 11 additions and 0 deletions

View File

@ -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,

View File

@ -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'