Skip to content

Commit

Permalink
fix requires for proxy config when on ubuntu #51
Browse files Browse the repository at this point in the history
Proxy config fails on ubuntu when using the managed repo #51
  • Loading branch information
sfc-gh-eraigosa committed Mar 14, 2014
1 parent cc60a87 commit 0d37dae
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

1 comment on commit 0d37dae

@skurylo
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this commit has caused a syntax error.

It looks like the opening if statement is missing

if <something> {
  $npm_require = 'Package[npm]'

Please sign in to comment.