Skip to content

Commit

Permalink
block creation of File['root_npmrc'] when running on Windows (#364)
Browse files Browse the repository at this point in the history
This file resource causes the puppet-nodejs module to fail on Windows.

Excluding it seems to make the module work.
  • Loading branch information
jhicks-camgian authored and juniorsysadmin committed May 7, 2018
1 parent 2880fc4 commit 809af09
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,14 @@
}
}

file { 'root_npmrc':
ensure => 'file',
path => "${facts['root_home']}/.npmrc",
content => template('nodejs/npmrc.erb'),
owner => 'root',
group => '0',
mode => '0600',
if $facts['os']['name'] != 'Windows' {
file { 'root_npmrc':
ensure => 'file',
path => "${facts['root_home']}/.npmrc",
content => template('nodejs/npmrc.erb'),
owner => 'root',
group => '0',
mode => '0600',
}
}
}

0 comments on commit 809af09

Please sign in to comment.