From db89f2367ce1ed27bb69785fd04f246715b3b3e6 Mon Sep 17 00:00:00 2001 From: Sebastian Marcet Date: Thu, 7 Feb 2019 19:03:09 -0300 Subject: [PATCH] Update nodejs default version default nodejs version installed on ubuntu xenial is too old ( 4.x ) and wanst installing npm package thus deployment was failing bc its relaying on that one added repo_url_suffix attribute to class nodejs to force to install version 9.x Change-Id: I4f3fe711acaffdf7340c49dc9aca095bbbf10a68 --- manifests/init.pp | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index d3a1f12..521efbf 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -297,8 +297,9 @@ class openstackid ( } } - # install nodejs default version + # force 10.x version class { '::nodejs': + repo_url_suffix => '10.x', } group { 'openstackid': @@ -322,14 +323,14 @@ class openstackid ( } file { '/etc/openstackid/.env': - ensure => present, - content => template('openstackid/.env.erb'), - owner => 'root', - group => 'www-data', - mode => '0640', - require => [ - File['/etc/openstackid'], - ] + ensure => present, + content => template('openstackid/.env.erb'), + owner => 'root', + group => 'www-data', + mode => '0640', + require => [ + File['/etc/openstackid'], + ] } # mysql ssl connection configuration @@ -460,12 +461,12 @@ class openstackid ( } $deploy_site_requires = [ - File['/opt/deploy/conf.d/openstackid.conf'], - Apache::Vhost::Custom[$vhost_name], - File['/etc/openstackid/.env'], - Package['curl'], - Package[$php_packages] , - Class['::nodejs'], + File['/opt/deploy/conf.d/openstackid.conf'], + Apache::Vhost::Custom[$vhost_name], + File['/etc/openstackid/.env'], + Package['curl'], + Package[$php_packages] , + Class['::nodejs'], ] $update_site_requires = [