Merge "Keep npm up-to-date."
This commit is contained in:
commit
5e4319f47e
@ -54,7 +54,14 @@ class openstack_project::release_slave (
|
||||
}
|
||||
|
||||
package { ['nodejs', 'nodejs-legacy', 'npm']:
|
||||
ensure => latest
|
||||
ensure => latest,
|
||||
before => Exec['upgrade npm'],
|
||||
}
|
||||
|
||||
exec { 'upgrade npm':
|
||||
command => 'npm install npm -g --upgrade',
|
||||
path => '/usr/local/bin:/usr/bin',
|
||||
onlyif => '[ `npm view npm version` != `npm --version` ]'
|
||||
}
|
||||
|
||||
file { '/home/jenkins/.pypirc':
|
||||
|
Loading…
x
Reference in New Issue
Block a user