system-config/modules/openstack_project/manifests/glancetest.pp
Monty Taylor 39fc1d5072 A few puppetmaster migration errors.
Change-Id: Ibcc8456da4d3fa3beb94173e571a5da071b6fa15
Reviewed-on: https://review.openstack.org/11628
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
2012-08-19 18:25:04 +00:00

42 lines
1.1 KiB
Puppet

class openstack_project::glancetest(
$s3_store_host="s3.amazonaws.com",
$s3_store_access_key,
$s3_store_secret_key,
$s3_store_bucket,
$swift_store_auth_address="auth.api.rackspacecloud.com/v1.0/",
$swift_store_user,
$swift_store_key,
$swift_store_container,
) {
file { 'jenkinsglanceconfigdir':
name => '/home/jenkins/.config/glance',
owner => 'jenkins',
group => 'jenkins',
mode => 700,
ensure => 'directory',
require => Class['::jenkins::jenkinsuser'],
}
file { 'glances3conf':
name => '/home/jenkins/.config/glance/s3.conf',
owner => 'jenkins',
group => 'jenkins',
mode => 400,
ensure => 'present',
require => File['jenkinsglanceconfigdir'],
content => template('openstack_project/glance_s3.conf.erb'),
}
file { 'glanceswiftconf':
name => '/home/jenkins/.config/glance/swift.conf',
owner => 'jenkins',
group => 'jenkins',
mode => 400,
ensure => 'present',
require => File['jenkinsglanceconfigdir'],
content => template('openstack_project/glance_swift.conf.erb'),
}
}