From 0d37dae8ad2640f5ef1bb5b3a223da478b6cb5ed Mon Sep 17 00:00:00 2001 From: Edward Raigosa Date: Fri, 14 Mar 2014 15:53:24 -0600 Subject: [PATCH] fix requires for proxy config when on ubuntu #51 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Proxy config fails on ubuntu when using the managed repo #51 --- manifests/init.pp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index 181330be..8b7df881 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -99,13 +99,17 @@ ensure => present, require => Anchor['nodejs::repo'] } + $npm_require = 'Package[npm]' + } else + { + $npm_require = 'Package[nodejs]' } if $proxy { exec { 'npm_proxy': command => "npm config set proxy ${proxy}", path => $::path, - require => Package['npm'], + require => $npm_require, } }