Puppet Class: profile::thumbor

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

Overview

Parameters:

  • memcached_servers_nutcracker (Any) (defaults to: hiera('thumbor_memcached_servers_nutcracker'))
  • logstash_host (Any) (defaults to: hiera('logstash_host'))
  • logstash_port (Any) (defaults to: hiera('logstash_logback_port'))
  • swift_sharded_containers (Any) (defaults to: hiera_array('swift::proxy::shard_container_list'))
  • swift_private_containers (Any) (defaults to: hiera_array('swift::proxy::private_container_list'))
  • thumbor_mediawiki_shared_secret (Any) (defaults to: hiera('thumbor::mediawiki::shared_secret'))
  • statsd_port (Any) (defaults to: hiera('statsd_exporter_port'))


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
# File 'modules/profile/manifests/thumbor.pp', line 1

class profile::thumbor(
    $memcached_servers_nutcracker = hiera('thumbor_memcached_servers_nutcracker'),
    $logstash_host = hiera('logstash_host'),
    $logstash_port = hiera('logstash_logback_port'),
    $swift_sharded_containers = hiera_array('swift::proxy::shard_container_list'),
    $swift_private_containers = hiera_array('swift::proxy::private_container_list'),
    $thumbor_mediawiki_shared_secret = hiera('thumbor::mediawiki::shared_secret'),
    $statsd_port = hiera('statsd_exporter_port'),
) {
    include ::profile::conftool::client
    class { 'conftool::scripts': }

    class { '::thumbor::nutcracker':
        thumbor_memcached_servers => $memcached_servers_nutcracker,
    }

    class { '::thumbor':
        logstash_host => $logstash_host,
        logstash_port => $logstash_port,
        statsd_port   => $statsd_port,
    }

    include ::swift::params
    $swift_account_keys = $::swift::params::account_keys

    class { '::thumbor::swift':
        swift_key                       => $swift_account_keys['mw_thumbor'],
        swift_private_key               => $swift_account_keys['mw_thumbor-private'],
        swift_sharded_containers        => $swift_sharded_containers,
        swift_private_containers        => $swift_private_containers,
        thumbor_mediawiki_shared_secret => $thumbor_mediawiki_shared_secret,
    }

    ferm::service { 'thumbor':
        proto  => 'tcp',
        port   => '8800',
        srange => '$DOMAIN_NETWORKS',
    }

}