Puppet Class: profile::openstack::base::nova::fullstack::service

Defined in:
modules/profile/manifests/openstack/base/nova/fullstack/service.pp

Overview

Parameters:

  • osstackcanary_pass (Any) (defaults to: lookup('profile::openstack::base::nova::fullstack_pass'))
  • openstack_controllers (Any) (defaults to: lookup('profile::openstack::base::openstack_controllers'))
  • region (Any) (defaults to: lookup('profile::openstack::base::region'))
  • network (Any) (defaults to: lookup('profile::openstack::base::nova::instance_network_id'))
  • puppetmaster (Any) (defaults to: lookup('profile::openstack::base::puppetmaster_hostname'))
  • bastion_ip (Any) (defaults to: lookup('profile::openstack::base::nova::fullstack_bastion_ip'))
  • deployment (Any) (defaults to: lookup('profile::openstack::base::nova::fullstack_deployment'))
  • dnsconfig (Any) (defaults to: lookup('labsdnsconfig',Hash, 'hash', {}))


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

class profile::openstack::base::nova::fullstack::service(
    $osstackcanary_pass = lookup('profile::openstack::base::nova::fullstack_pass'),
    $openstack_controllers = lookup('profile::openstack::base::openstack_controllers'),
    $region = lookup('profile::openstack::base::region'),
    $network = lookup('profile::openstack::base::nova::instance_network_id'),
    $puppetmaster = lookup('profile::openstack::base::puppetmaster_hostname'),
    $bastion_ip = lookup('profile::openstack::base::nova::fullstack_bastion_ip'),
    $deployment = lookup('profile::openstack::base::nova::fullstack_deployment'),
    $dnsconfig  = lookup('labsdnsconfig',Hash, 'hash', {})
    ) {

    $nameservers = [
        ipresolve($dnsconfig['recursor'], 4),
        ipresolve($dnsconfig['recursor_secondary'], 4)
    ]

    # We only want this running in one place; just pick the first
    #  host in $openstack_controllers.
    class { '::openstack::nova::fullstack::service':
        active       => ($::fqdn == $openstack_controllers[0]),
        password     => $osstackcanary_pass,
        region       => $region,
        network      => $network,
        puppetmaster => $puppetmaster,
        bastion_ip   => $bastion_ip,
        deployment   => $deployment,
        resolvers    => $nameservers,
    }
    contain '::openstack::nova::fullstack::service'
}