Puppet Class: swift::auth_file

Defined in:
manifests/auth_file.pp

Overview

Parameters:

  • admin_tenant (Any)
  • admin_password (Any)
  • admin_user (Any) (defaults to: 'admin')
  • auth_url (Any) (defaults to: 'http://127.0.0.1:5000/v2.0/')


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}
  "
  }
}