Skip to content

Commit

Permalink
fix requires for proxy config when on ubuntu voxpupuli#51
Browse files Browse the repository at this point in the history
Proxy config fails on ubuntu when using the managed repo voxpupuli#51
  • Loading branch information
sfc-gh-eraigosa committed Mar 14, 2014
1 parent 6d92ed9 commit 2a74f27
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}

Expand Down

0 comments on commit 2a74f27

Please sign in to comment.