From 85731ecb8cb8c080d769b1b26fcd8a3134c793c3 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Tue, 13 Nov 2012 12:38:52 -0800 Subject: [PATCH] Fix eplite node.js install problems. Two problems installing node.js for etherpad lite on a new host: 1. Install may be attempted before repository is properly cloned. 2. Installing node from source may take longer than the default exec timeout. Fix this by adding more order requirements and increase the exec timeout when running make on node.js. Change-Id: I74c225ee725e6e67b54dbf8ba7795d28e82c66e3 Reviewed-on: https://review.openstack.org/16013 Reviewed-by: Paul Belanger Reviewed-by: Jeremy Stanley Reviewed-by: James E. Blair Approved: Clark Boylan Reviewed-by: Clark Boylan Tested-by: Jenkins --- modules/etherpad_lite/manifests/init.pp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/etherpad_lite/manifests/init.pp b/modules/etherpad_lite/manifests/init.pp index df44cf5233..01e856fc3a 100644 --- a/modules/etherpad_lite/manifests/init.pp +++ b/modules/etherpad_lite/manifests/init.pp @@ -2,6 +2,7 @@ define buildsource( $dir = $title, $user = 'root', + $timeout = 300, $creates = '/nonexistant/file' ) { @@ -18,6 +19,7 @@ define buildsource( path => '/usr/bin:/bin', user => $user, cwd => $dir, + timeout => $timeout, creates => $creates } -> @@ -75,7 +77,10 @@ class etherpad_lite ( provider => git, source => 'https://github.com/joyent/node.git', revision => $nodejs_version, - require => Package['git'] + require => [ + Package['git'], + File["${base_install_dir}"], + ], } package { ['gzip', @@ -93,6 +98,7 @@ class etherpad_lite ( } buildsource { "${base_install_dir}/nodejs": + timeout => 900, # 15 minutes creates => '/usr/local/bin/node', require => [Package['gzip'], Package['curl'],