Puppet Class: profile::openstack::codfw1dev::pdns::auth::service
- Defined in:
- modules/profile/manifests/openstack/codfw1dev/pdns/auth/service.pp
Overview
SPDX-License-Identifier: Apache-2.0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'modules/profile/manifests/openstack/codfw1dev/pdns/auth/service.pp', line 2
class profile::openstack::codfw1dev::pdns::auth::service(
Array[Hash] $hosts = lookup('profile::openstack::codfw1dev::pdns::hosts'),
Array[OpenStack::ControlNode] $openstack_control_nodes = lookup('profile::openstack::codfw1dev::openstack_control_nodes'),
String $openstack_control_node_interface = lookup('profile::openstack::base::neutron::openstack_control_node_interface', {default_value => 'cloud_private_fqdn'}),
$db_pass = lookup('profile::openstack::codfw1dev::pdns::db_pass'),
String $pdns_api_key = lookup('profile::openstack::codfw1dev::pdns::api_key'),
) {
$designate_hosts = $openstack_control_nodes.map |$node| { $node[$openstack_control_node_interface] }
# We're patching in our ipv4 address for db_host here;
# for unclear reasons 'localhost' doesn't work properly
# with the version of Mariadb installed on Jessie.
class {'::profile::openstack::base::pdns::auth::service':
hosts => $hosts,
designate_hosts => $designate_hosts,
db_pass => $db_pass,
db_host => ipresolve($::fqdn,4),
pdns_api_key => $pdns_api_key,
}
}
|