From 9641a55f1c5dab8a1f41474c18b0400a1d0d7181 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 --- manifests/init.pp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index df44cf5..01e856f 100644 --- a/manifests/init.pp +++ b/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'],