Puppet Class: thumbor::swift

Defined in:
modules/thumbor/manifests/swift.pp

Overview

Parameters:

  • swift_key (Any) (defaults to: '')
  • swift_account (Any) (defaults to: 'mw')
  • swift_user (Any) (defaults to: 'thumbor')
  • swift_private_key (Any) (defaults to: '')
  • swift_private_account (Any) (defaults to: 'mw')
  • swift_private_user (Any) (defaults to: 'thumbor-private')
  • swift_sharded_containers (Any) (defaults to: [])
  • swift_private_containers (Any) (defaults to: [])
  • thumbor_mediawiki_shared_secret (Any) (defaults to: '')
  • swift_host (Any) (defaults to: "https://ms-fe.svc.${::site}.wmnet")


26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'modules/thumbor/manifests/swift.pp', line 26

class thumbor::swift (
    $swift_key = '',
    $swift_account = 'mw',
    $swift_user = 'thumbor',
    $swift_private_key = '',
    $swift_private_account = 'mw',
    $swift_private_user = 'thumbor-private',
    $swift_sharded_containers = [],
    $swift_private_containers = [],
    $thumbor_mediawiki_shared_secret = '',
    $swift_host = "https://ms-fe.svc.${::site}.wmnet",
) {
    file { '/etc/thumbor.d/80-thumbor-swift.conf':
        ensure  => present,
        owner   => 'thumbor',
        group   => 'thumbor',
        mode    => '0440',
        content => template('thumbor/swift.conf.erb'),
        require => Package['python-thumbor-wikimedia'],
    }

    file { '/etc/thumbor.d/80-thumbor-swift-secret.conf':
        ensure    => present,
        owner     => 'thumbor',
        group     => 'thumbor',
        mode      => '0440',
        content   => template('thumbor/swift-secret.conf.erb'),
        require   => Package['python-thumbor-wikimedia'],
        show_diff => false,
    }
}