Puppet Class: swift::auth_file
- Defined in:
- manifests/auth_file.pp
Overview
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'manifests/auth_file.pp', line 1
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}
"
}
}
|