puppet-swift/manifests/test_file.pp
Mathieu Gagné 178f4b18dc Various Puppet lint fixes
* 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
2013-08-02 11:51:57 -04:00

44 lines
1019 B
Puppet

# == 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
#
# Copyright 2011 PuppetLabs.
#
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')
}
}