Puppet Class: profile::openstack::base::puppetmaster::backend

Defined in:
modules/profile/manifests/openstack/base/puppetmaster/backend.pp

Overview

Parameters:

  • openstack_controllers (Array[Stdlib::Fqdn]) (defaults to: lookup('profile::openstack::base::openstack_controllers'))
  • designate_hosts (Array[Stdlib::Fqdn]) (defaults to: lookup('profile::openstack::base::designate_hosts'))
  • puppetmaster_ca (Any) (defaults to: lookup('profile::openstack::base::puppetmaster::ca'))
  • puppetmasters (Any) (defaults to: lookup('profile::openstack::base::puppetmaster::servers'))
  • encapi_db_host (Any) (defaults to: lookup('profile::openstack::base::puppetmaster::encapi::db_host'))
  • encapi_db_name (Any) (defaults to: lookup('profile::openstack::base::puppetmaster::encapi::db_name'))
  • encapi_db_user (Any) (defaults to: lookup('profile::openstack::base::puppetmaster::encapi::db_user'))
  • encapi_db_pass (Any) (defaults to: lookup('profile::openstack::base::puppetmaster::encapi::db_pass'))
  • labweb_hosts (Any) (defaults to: lookup('profile::openstack::base::labweb_hosts'))


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

class profile::openstack::base::puppetmaster::backend(
    Array[Stdlib::Fqdn] $openstack_controllers = lookup('profile::openstack::base::openstack_controllers'),
    Array[Stdlib::Fqdn] $designate_hosts = lookup('profile::openstack::base::designate_hosts'),
    $puppetmaster_ca = lookup('profile::openstack::base::puppetmaster::ca'),
    $puppetmasters = lookup('profile::openstack::base::puppetmaster::servers'),
    $encapi_db_host = lookup('profile::openstack::base::puppetmaster::encapi::db_host'),
    $encapi_db_name = lookup('profile::openstack::base::puppetmaster::encapi::db_name'),
    $encapi_db_user = lookup('profile::openstack::base::puppetmaster::encapi::db_user'),
    $encapi_db_pass = lookup('profile::openstack::base::puppetmaster::encapi::db_pass'),
    $labweb_hosts = lookup('profile::openstack::base::labweb_hosts'),
    ) {

    require ::profile::conftool::client
    include ::network::constants
    class {'profile::openstack::base::puppetmaster::common':
        openstack_controllers => $openstack_controllers,
        designate_hosts       => $designate_hosts,
        puppetmasters         => $puppetmasters,
        encapi_db_host        => $encapi_db_host,
        encapi_db_name        => $encapi_db_name,
        encapi_db_user        => $encapi_db_user,
        encapi_db_pass        => $encapi_db_pass,
        labweb_hosts          => $labweb_hosts,
    }

    # Only allow puppet access from the instances
    $labs_networks = join($network::constants::labs_networks, ' ')
    $allow_from = flatten([$network::constants::labs_networks, '.wikimedia.org'])

    $config = {
        'node_terminus'     => 'exec',
        'external_nodes'    => '/usr/local/bin/puppet-enc',
        'thin_storeconfigs' => false,
        'autosign'          => true,
    }

    class { '::profile::puppetmaster::backend':
        config           => $config,
        secure_private   => false,
        allow_from       => $allow_from,
        servers          => $puppetmasters,
        ca_server        => $puppetmaster_ca,
        extra_auth_rules => template('profile/openstack/base/puppetmaster/extra_auth_rules.conf.erb'),
    }
}