Puppet Class: profile::swift::stats_reporter

Defined in:
modules/profile/manifests/swift/stats_reporter.pp

Overview

Parameters:

  • ensure (Wmflib::Ensure) (defaults to: lookup('profile::swift::stats_reporter::ensure'))
  • swift_cluster (String) (defaults to: lookup('profile::swift::cluster'))
  • accounts (Hash[String, Hash]) (defaults to: lookup('profile::swift::accounts'))
  • credentials (Hash[String, String]) (defaults to: lookup('profile::swift::accounts_keys'))
  • statsd_host (Optional[Stdlib::Host]) (defaults to: lookup('profile::swift::stats_reporter::statsd_host'))
  • statsd_port (Optional[Stdlib::Port]) (defaults to: lookup('profile::swift::stats_reporter::statsd_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
# File 'modules/profile/manifests/swift/stats_reporter.pp', line 1

class profile::swift::stats_reporter (
    Wmflib::Ensure         $ensure        = lookup('profile::swift::stats_reporter::ensure'),
    String                 $swift_cluster = lookup('profile::swift::cluster'),
    Hash[String, Hash]     $accounts      = lookup('profile::swift::accounts'),
    Hash[String, String]   $credentials   = lookup('profile::swift::accounts_keys'),
    Optional[Stdlib::Host] $statsd_host   = lookup('profile::swift::stats_reporter::statsd_host'),
    Optional[Stdlib::Port] $statsd_port   = lookup('profile::swift::stats_reporter::statsd_port'),
){

    class { 'swift::stats::dispersion':
        ensure        => $ensure,
        swift_cluster => $swift_cluster,
        statsd_host   => $statsd_host,
        statsd_port   => $statsd_port,
    }

    class { 'swift::stats::accounts':
        ensure        => $ensure,
        swift_cluster => $swift_cluster,
        accounts      => $accounts,
        credentials   => $credentials,
        statsd_host   => $statsd_host,
        statsd_port   => $statsd_port,
    }
}