Puppet Class: profile::openstack::base::pdns::dns_floating_ip_updater

Defined in:
modules/profile/manifests/openstack/base/pdns/dns_floating_ip_updater.pp

Overview

Parameters:

  • openstack_controllers (Array[Stdlib::Fqdn]) (defaults to: lookup('profile::openstack::base::openstack_controllers', {default_value => ['cloudcontrol1003.wikimedia.org']}))
  • floating_ip_ptr_zone (Any) (defaults to: lookup('profile::openstack::base::designate::floating_ip_ptr_zone'))
  • floating_ip_ptr_fqdn_matching_regex (Any) (defaults to: lookup('profile::openstack::base::designate::floating_ip_ptr_fqdn_matching_regex'))
  • floating_ip_ptr_fqdn_replacement_pattern (Any) (defaults to: lookup('profile::openstack::base::designate::floating_ip_ptr_fqdn_replacement_pattern'))


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'modules/profile/manifests/openstack/base/pdns/dns_floating_ip_updater.pp', line 1

class profile::openstack::base::pdns::dns_floating_ip_updater(
    Array[Stdlib::Fqdn] $openstack_controllers = lookup('profile::openstack::base::openstack_controllers', {default_value => ['cloudcontrol1003.wikimedia.org']}),
    $floating_ip_ptr_zone = lookup('profile::openstack::base::designate::floating_ip_ptr_zone'),
    $floating_ip_ptr_fqdn_matching_regex = lookup('profile::openstack::base::designate::floating_ip_ptr_fqdn_matching_regex'),
    $floating_ip_ptr_fqdn_replacement_pattern = lookup('profile::openstack::base::designate::floating_ip_ptr_fqdn_replacement_pattern'),
    ) {

    # only run the cronjob in one node
    if ($::fqdn == $openstack_controllers[0]) {
        $ensure = 'present'
    }
    else {
        $ensure = 'absent'
    }

    class {'::openstack::designate::dns_floating_ip_updater':
        ensure                                   => $ensure,
        floating_ip_ptr_zone                     => $floating_ip_ptr_zone,
        floating_ip_ptr_fqdn_matching_regex      => $floating_ip_ptr_fqdn_matching_regex,
        floating_ip_ptr_fqdn_replacement_pattern => $floating_ip_ptr_fqdn_replacement_pattern,
    }
}