From 7aa7ea88a2fe91171b62a9edc6af00b17bebc17f Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Tue, 10 Jan 2012 12:58:00 -0800 Subject: [PATCH] Add glance config files for func testing. Adds config stanzas for glance files needed for functional testing against s3 and swift. The files themselves are not present in the repo because they hold credentials. Addresses bug 914430. Change-Id: I35345ecd24e2f755cd492863d6eec74593c9d3b9 --- .../jenkins_slave/manifests/jenkinsuser.pp | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/modules/jenkins_slave/manifests/jenkinsuser.pp b/modules/jenkins_slave/manifests/jenkinsuser.pp index 2ba9fc3edb..fd599db8eb 100644 --- a/modules/jenkins_slave/manifests/jenkinsuser.pp +++ b/modules/jenkins_slave/manifests/jenkinsuser.pp @@ -170,4 +170,37 @@ define jenkinsuser($ensure = present) { require => File['jenkinshome'], } + file { 'jenkinsglanceconfigdir': + name => '/home/jenkins/.config/glance', + owner => 'jenkins', + group => 'jenkins', + mode => 700, + ensure => 'directory', + require => File['jenkinsconfigdir'], + } + + file { 'glances3conf': + name => '/home/jenkins/.config/glance/s3.conf', + owner => 'jenkins', + group => 'jenkins', + mode => 400, + ensure => 'present', + require => File['jenkinsglanceconfigdir'], + source => [ + "puppet:///modules/jenkins_slave/glance_s3.conf", + ], + } + + file { 'glanceswiftconf': + name => '/home/jenkins/.config/glance/swift.conf', + owner => 'jenkins', + group => 'jenkins', + mode => 400, + ensure => 'present', + require => File['jenkinsglanceconfigdir'], + source => [ + "puppet:///modules/jenkins_slave/glance_swift.conf", + ], + } + }