Puppet Class: profile::openstack::base::neutron::common

Defined in:
modules/profile/manifests/openstack/base/neutron/common.pp

Overview

Parameters:

  • version (Any) (defaults to: hiera('profile::openstack::base::version'))
  • region (Any) (defaults to: hiera('profile::openstack::base::region'))
  • dhcp_domain (Any) (defaults to: hiera('profile::openstack::base::nova::dhcp_domain'))
  • db_user (Any) (defaults to: hiera('profile::openstack::base::neutron::db_user'))
  • db_pass (Any) (defaults to: hiera('profile::openstack::base::neutron::db_pass'))
  • db_host (Any) (defaults to: hiera('profile::openstack::base::neutron::db_host'))
  • openstack_controllers (Array[Stdlib::Fqdn]) (defaults to: lookup('profile::openstack::base::openstack_controllers'))
  • keystone_api_fqdn (Stdlib::Fqdn) (defaults to: lookup('profile::openstack::base::keystone_api_fqdn'))
  • ldap_user_pass (Any) (defaults to: hiera('profile::openstack::base::ldap_user_pass'))
  • rabbit_user (Any) (defaults to: hiera('profile::openstack::base::neutron::rabbit_user'))
  • rabbit_pass (Any) (defaults to: hiera('profile::openstack::base::neutron::rabbit_pass'))
  • tld (Any) (defaults to: hiera('profile::openstack::base::neutron::tld'))
  • agent_down_time (Any) (defaults to: hiera('profile::openstack::base::neutron::agent_down_time'))
  • log_agent_heartbeats (Any) (defaults to: hiera('profile::openstack::base::neutron::log_agent_heartbeats'))
  • auth_port (Stdlib::Port) (defaults to: lookup('profile::openstack::base::keystone::auth_port'))
  • bind_port (Stdlib::Port) (defaults to: lookup('profile::openstack::base::neutron::bind_port'))
  • public_port (Stdlib::Port) (defaults to: lookup('profile::openstack::base::keystone::public_port'))


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
46
47
48
49
50
51
# File 'modules/profile/manifests/openstack/base/neutron/common.pp', line 1

class profile::openstack::base::neutron::common(
    $version = hiera('profile::openstack::base::version'),
    $region = hiera('profile::openstack::base::region'),
    $dhcp_domain = hiera('profile::openstack::base::nova::dhcp_domain'),
    $db_user = hiera('profile::openstack::base::neutron::db_user'),
    $db_pass = hiera('profile::openstack::base::neutron::db_pass'),
    $db_host = hiera('profile::openstack::base::neutron::db_host'),
    Array[Stdlib::Fqdn] $openstack_controllers = lookup('profile::openstack::base::openstack_controllers'),
    Stdlib::Fqdn $keystone_api_fqdn = lookup('profile::openstack::base::keystone_api_fqdn'),
    $ldap_user_pass = hiera('profile::openstack::base::ldap_user_pass'),
    $rabbit_user = hiera('profile::openstack::base::neutron::rabbit_user'),
    $rabbit_pass = hiera('profile::openstack::base::neutron::rabbit_pass'),
    $tld = hiera('profile::openstack::base::neutron::tld'),
    $agent_down_time = hiera('profile::openstack::base::neutron::agent_down_time'),
    $log_agent_heartbeats = hiera('profile::openstack::base::neutron::log_agent_heartbeats'),
    Stdlib::Port $auth_port = lookup('profile::openstack::base::keystone::auth_port'),
    Stdlib::Port $bind_port = lookup('profile::openstack::base::neutron::bind_port'),
    Stdlib::Port $public_port = lookup('profile::openstack::base::keystone::public_port'),
    ) {

    $keystone_admin_uri = "http://${keystone_api_fqdn}:${auth_port}"
    $keystone_public_uri = "http://${keystone_api_fqdn}:${public_port}"

    class {'::openstack::neutron::common':
        version               => $version,
        openstack_controllers => $openstack_controllers,
        keystone_admin_uri    => $keystone_admin_uri,
        keystone_api_fqdn     => $keystone_api_fqdn,
        keystone_public_uri   => $keystone_public_uri,
        db_pass               => $db_pass,
        db_user               => $db_user,
        db_host               => $db_host,
        region                => $region,
        dhcp_domain           => $dhcp_domain,
        ldap_user_pass        => $ldap_user_pass,
        rabbit_pass           => $rabbit_pass,
        rabbit_user           => $rabbit_user,
        tld                   => $tld,
        agent_down_time       => $agent_down_time,
        log_agent_heartbeats  => $log_agent_heartbeats,
        bind_port             => $bind_port,
    }
    contain '::openstack::neutron::common'

    openstack::db::project_grants { 'neutron':
        access_hosts => $openstack_controllers,
        db_name      => 'neutron',
        db_user      => $db_user,
        db_pass      => $db_pass,
    }
}