Skip to content

Commit

Permalink
Merge pull request voxpupuli#70 from wenlock/master
Browse files Browse the repository at this point in the history
fix requires for proxy config when on ubuntu voxpupuli#51
  • Loading branch information
Morgan Haskel committed Jan 21, 2015
2 parents 0039335 + 0d37dae commit 064f78d
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 @@ -163,13 +163,17 @@
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 064f78d

Please sign in to comment.