86b0f3bfd5
The devstack cache steps were being run as the ubuntu user; make sure they are run as jenkins. Also update the nodepool configuration file to current values and include the jenkins credential id. Change-Id: Icbe8bee3b1800e28034cd36d4d328a6793d55b0e
53 lines
1.3 KiB
Puppet
53 lines
1.3 KiB
Puppet
# == Class: openstack_project::nodepool
|
|
#
|
|
class openstack_project::nodepool(
|
|
$mysql_root_password,
|
|
$mysql_password,
|
|
$nodepool_ssh_private_key = '',
|
|
$sysadmins = [],
|
|
$statsd_host = '',
|
|
$jenkins_api_user ='',
|
|
$jenkins_api_key ='',
|
|
$jenkins_credentials_id ='',
|
|
$rackspace_username ='',
|
|
$rackspace_password ='',
|
|
$rackspace_project ='',
|
|
$hpcloud_username ='',
|
|
$hpcloud_password ='',
|
|
$hpcloud_project ='',
|
|
) {
|
|
class { 'openstack_project::server':
|
|
sysadmins => $sysadmins,
|
|
}
|
|
|
|
class { '::nodepool':
|
|
mysql_root_password => $mysql_root_password,
|
|
mysql_password => $mysql_password,
|
|
nodepool_ssh_private_key => $nodepool_ssh_private_key,
|
|
statsd_host => $statsd_host,
|
|
}
|
|
|
|
file { '/etc/nodepool/nodepool.yaml':
|
|
ensure => present,
|
|
owner => 'nodepool',
|
|
group => 'root',
|
|
mode => '0400',
|
|
content => template('openstack_project/nodepool/nodepool.yaml.erb'),
|
|
require => [
|
|
File['/etc/nodepool'],
|
|
User['nodepool'],
|
|
],
|
|
}
|
|
|
|
file { '/etc/nodepool/scripts':
|
|
ensure => directory,
|
|
owner => 'root',
|
|
group => 'root',
|
|
mode => '0755',
|
|
recurse => true,
|
|
require => File['/etc/nodepool'],
|
|
source => 'puppet:///modules/openstack_project/nodepool/scripts',
|
|
}
|
|
|
|
}
|