Puppet Class: profile::openstack::codfw1dev::pdns::recursor::service

Defined in:
modules/profile/manifests/openstack/codfw1dev/pdns/recursor/service.pp

Overview

SPDX-License-Identifier: Apache-2.0

Parameters:

  • keystone_api_fqdn (Stdlib::Fqdn) (defaults to: lookup('profile::openstack::codfw1dev::keystone_api_fqdn'))
  • observer_password (Any) (defaults to: lookup('profile::openstack::codfw1dev::observer_password'))
  • pdns_hosts (Array[Hash]) (defaults to: lookup('profile::openstack::codfw1dev::pdns::hosts'))
  • legacy_tld (Any) (defaults to: lookup('profile::openstack::codfw1dev::pdns::legacy_tld'))
  • private_reverse_zones (Any) (defaults to: lookup('profile::openstack::codfw1dev::pdns::private_reverse_zones'))
  • aliaser_extra_records (Any) (defaults to: lookup('profile::openstack::codfw1dev::pdns::recursor_aliaser_extra_records'))
  • extra_allow_from (Array[Stdlib::IP::Address]) (defaults to: lookup('profile::openstack::codfw1dev::pdns::extra_allow_from', {default_value => []}))
  • openstack_control_nodes (Array[OpenStack::ControlNode]) (defaults to: lookup('profile::openstack::codfw1dev::openstack_control_nodes'))
  • prometheus_nodes (Array[Stdlib::Fqdn]) (defaults to: lookup('prometheus_nodes'))


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
# File 'modules/profile/manifests/openstack/codfw1dev/pdns/recursor/service.pp', line 2

class profile::openstack::codfw1dev::pdns::recursor::service(
    Stdlib::Fqdn $keystone_api_fqdn = lookup('profile::openstack::codfw1dev::keystone_api_fqdn'),
    $observer_password = lookup('profile::openstack::codfw1dev::observer_password'),
    Array[Hash] $pdns_hosts = lookup('profile::openstack::codfw1dev::pdns::hosts'),
    $legacy_tld = lookup('profile::openstack::codfw1dev::pdns::legacy_tld'),
    $private_reverse_zones = lookup('profile::openstack::codfw1dev::pdns::private_reverse_zones'),
    $aliaser_extra_records = lookup('profile::openstack::codfw1dev::pdns::recursor_aliaser_extra_records'),
    Array[Stdlib::IP::Address] $extra_allow_from = lookup('profile::openstack::codfw1dev::pdns::extra_allow_from', {default_value => []}),
    Array[OpenStack::ControlNode] $openstack_control_nodes = lookup('profile::openstack::codfw1dev::openstack_control_nodes'),
    Array[Stdlib::Fqdn] $prometheus_nodes = lookup('prometheus_nodes'),
) {
    # for now only prometheus metrics are needed.. maybe something else in the future?
    $api_allow_hosts = $prometheus_nodes

    class {'::profile::openstack::base::pdns::recursor::service':
        keystone_api_fqdn       => $keystone_api_fqdn,
        observer_password       => $observer_password,
        pdns_hosts              => $pdns_hosts,
        legacy_tld              => $legacy_tld,
        private_reverse_zones   => $private_reverse_zones,
        aliaser_extra_records   => $aliaser_extra_records,
        extra_allow_from        => $extra_allow_from,
        openstack_control_nodes => $openstack_control_nodes,
        pdns_api_allow_from     => flatten([
            '127.0.0.1',
            $api_allow_hosts.map |Stdlib::Fqdn $host| { ipresolve($host, 4) }
        ]),
    }
}