Added manifest to generate swiftrc file

This commit is contained in:
Joe Topjian 2012-08-21 02:02:56 +00:00
parent 3fd9ac9b9d
commit 8524d615e7

20
manifests/auth_file.pp Normal file
View File

@ -0,0 +1,20 @@
class swift::auth_file (
$admin_tenant,
$admin_password,
$admin_user = 'admin',
$auth_url = 'http://127.0.0.1:5000/v2.0/'
) {
file { '/root/swiftrc':
ensure => present,
owner => 'root',
group => 'root',
mode => '0600',
content =>
"
export ST_USER=${admin_tenant}:${admin_user}
export ST_KEY=${admin_password}
export ST_AUTH=${auth_url}
"
}
}