diff --git a/deployment/puppet/horizon/manifests/init.pp b/deployment/puppet/horizon/manifests/init.pp index 17b3152afd..009b94f907 100644 --- a/deployment/puppet/horizon/manifests/init.pp +++ b/deployment/puppet/horizon/manifests/init.pp @@ -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, diff --git a/deployment/puppet/horizon/manifests/params.pp b/deployment/puppet/horizon/manifests/params.pp index 17c6c4d33b..aeb9442f55 100644 --- a/deployment/puppet/horizon/manifests/params.pp +++ b/deployment/puppet/horizon/manifests/params.pp @@ -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'