File: test_file.pp

package info (click to toggle)
puppet-module-swift 9.4.4-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,248 kB
  • ctags: 95
  • sloc: ruby: 5,804; python: 35; makefile: 17; sh: 15
file content (47 lines) | stat: -rw-r--r-- 1,075 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# == 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'
) {

  include ::swift::deps

  file { '/tmp/swift_test_file.rb':
    mode    => '0755',
    content => template('swift/swift_keystone_test.erb'),
    tag     => 'swift-file',
  }
}