system-config/modules/openstack_project/manifests/nodepool.pp
Elizabeth Krumbach Joseph 6fd82112e8 Add initial files for tripleo in the gate.
Add jenkins job builder tripleo script (based on pbr).

Add prepare_node_tripleo.sh which will be called by nodepool.

Add prepare_tripleo.sh script, based on the devstack script
but pulling in just the tripleo repositories with pull-tools
tripleo-incubator script.

Add tripleo stanza to nodepool itself.

Update site.pp with variables for tripleo authentication.

Add experimental pipeline to zuul's layout.yaml for this job on
tripleo-incubator.

Change-Id: I03433d08585ba3a783fe939264d7521cafa83e41
2013-10-07 12:50:21 -07:00

56 lines
1.4 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 ='',
$tripleo_username ='',
$tripleo_password ='',
$tripleo_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',
}
}