Added manifest to generate swiftrc file
This commit is contained in:
parent
3fd9ac9b9d
commit
8524d615e7
20
manifests/auth_file.pp
Normal file
20
manifests/auth_file.pp
Normal 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}
|
||||||
|
"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user