178f4b18dc
* Fix following warnings: * double quoted string containing no variables * indentation of => is not properly aligned * mode should be represented as a 4 digit octal value or symbolic mode * string containing only a variable * top-scope variable being used without an explicit namespace * unquoted file mode * variable not enclosed in {} * Fix following errors: * trailing whitespace found * two-space soft tabs not used * Remove quotes around class in include/require statements Change-Id: Ia920d848e1955612a6486ec8731309e6d3a70f63
21 lines
405 B
Puppet
21 lines
405 B
Puppet
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}
|
|
"
|
|
}
|
|
}
|