Merge "Added recent version of npm to release slave"

This commit is contained in:
Jenkins 2015-10-07 18:35:58 +00:00 committed by Gerrit Code Review
commit 7596ddf6c6
2 changed files with 11 additions and 17 deletions

View File

@ -53,25 +53,17 @@ class openstack_project::release_slave (
require => Class['pip'],
}
exec { 'uninstall /usr/local/bin/npm':
command => 'npm uninstall npm --prefix=/usr/local -g',
onlyif => 'test -d /usr/local/lib/node_modules',
path => '/usr/local/bin:/usr/bin',
class { '::nodejs':
repo_url_suffix => 'node_0.12',
}
package { ['npm', 'nodejs', 'nodejs-legacy']:
ensure => purged,
require => Exec['uninstall /usr/local/bin/npm'],
}
file { ['/usr/share/npm',
'/usr/lib/node_modules',
'/root/.npm',
'/etc/npmrc',
'/home/jenkins/.npmrc']:
ensure => absent,
force => true,
require => Package['npm']
file { '/home/jenkins/.npmrc':
ensure => present,
owner => 'jenkins',
group => 'jenkins',
mode => '0600',
content => template('openstack_project/npmrc.erb'),
require => File['/home/jenkins'],
}
file { '/home/jenkins/.pypirc':

View File

@ -4,6 +4,8 @@
init.author.name=<%= jenkins_gitfullname %>
init.author.email=<%= jenkins_gitemail %>
init.author.url=<%= npm_userurl %>
tag-version-prefix=
sign-git-tag=true
//registry.npmjs.org/:username=<%= npm_username %>
//registry.npmjs.org/:_password=<%= Base64.encode64(npm_userpassword) %>