system-config/modules/openstack_project/manifests/nodepool.pp
Clark Boylan 753e337fcc Use purge option where appropriate.
* modules/jenkins/manifests/master.pp
* modules/jenkins/manifests/slave.pp: Recursively purge the
slave_scripts dir. This will remove old slave scripts.

* modules/openstack_project/manifests/gerrit.pp: Recursively purge the
gerrit ACLs dir. This will remove old and renamed ACL files.

* modules/openstack_project/manifests/nodepool.pp: Recursively purge the
nodepool scripts dir. This will remove old and renamed nodepool scripts.

* modules/openstack_project/manifests/static.pp: Recursively purge the
devstack log help files. This will remove old and renamed help files.

Change-Id: If739b274075781dcd0d0836bca96dd1764c6ee19
2013-12-02 14:15:51 -08:00

57 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,
purge => true,
require => File['/etc/nodepool'],
source => 'puppet:///modules/openstack_project/nodepool/scripts',
}
}