f31a426c65
Now with extra unwrap! Change-Id: I7c622ffa77821f33f911793fc6b6cdaaba37904a Reviewed-on: https://review.openstack.org/15052 Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Approved: Jeremy Stanley <fungi@yuggoth.org> Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Tested-by: Jenkins
43 lines
1.2 KiB
Puppet
43 lines
1.2 KiB
Puppet
# == Class: openstack_project::glancetest
|
|
#
|
|
class openstack_project::glancetest(
|
|
$s3_store_access_key = '',
|
|
$s3_store_secret_key = '',
|
|
$s3_store_bucket = '',
|
|
$swift_store_user = '',
|
|
$swift_store_key = '',
|
|
$swift_store_container = '',
|
|
$s3_store_host = 's3.amazonaws.com',
|
|
$swift_store_auth_address = 'auth.api.rackspacecloud.com/v1.0/'
|
|
) {
|
|
|
|
file { 'jenkinsglanceconfigdir':
|
|
ensure => directory,
|
|
name => '/home/jenkins/.config/glance',
|
|
owner => 'jenkins',
|
|
group => 'jenkins',
|
|
mode => '0700',
|
|
require => Class['::jenkins::jenkinsuser'],
|
|
}
|
|
|
|
file { 'glances3conf':
|
|
ensure => present,
|
|
name => '/home/jenkins/.config/glance/s3.conf',
|
|
owner => 'jenkins',
|
|
group => 'jenkins',
|
|
mode => '0400',
|
|
require => File['jenkinsglanceconfigdir'],
|
|
content => template('openstack_project/glance_s3.conf.erb'),
|
|
}
|
|
|
|
file { 'glanceswiftconf':
|
|
ensure => present,
|
|
name => '/home/jenkins/.config/glance/swift.conf',
|
|
owner => 'jenkins',
|
|
group => 'jenkins',
|
|
mode => '0400',
|
|
require => File['jenkinsglanceconfigdir'],
|
|
content => template('openstack_project/glance_swift.conf.erb'),
|
|
}
|
|
}
|