Puppet Class: swift::test_file

Defined in:
manifests/test_file.pp

Overview

Class: swift::test_file

Deploys a file that can be used to verify your swift installation.

Parameters

password

password used with tenant/user combination against auth_server. Required.

auth_server

server hosting keystone. Optional. Defaults to 127.0.0.1.

tenant

tenant used for authentication (required for retrieval of catalog). Optional. Defaults to openstack.

user

authenticated user. Optional. Defaults to ‘admin’.

Examples

class { 'swift::test_file':
  auth_server => '172.16.0.25',
  tenant      => 'services',
  user        => 'swift',
  password    => 'admin_password',
}

Authors

Dan Bode <bodepd@gmail.com>

Copyright 2011 PuppetLabs.

Parameters:

  • password (Any)
  • auth_server (Any) (defaults to: '127.0.0.1')
  • tenant (Any) (defaults to: 'openstack')
  • user (Any) (defaults to: 'admin')


33
34
35
36
37
38
39
40
41
42
43
# File 'manifests/test_file.pp', line 33

class swift::test_file (
  $password,
  $auth_server = '127.0.0.1',
  $tenant      = 'openstack',
  $user        = 'admin'
) {
  file { '/tmp/swift_test_file.rb':
    mode    => '0755',
    content => template('swift/swift_keystone_test.erb')
  }
}