Puppet Class: openstack::neutron::common::caracal

Defined in:
modules/openstack/manifests/neutron/common/caracal.pp

Overview

Parameters:

  • memcached_nodes (Array[Stdlib::Fqdn])
  • rabbitmq_nodes (Array[Stdlib::Fqdn])
  • keystone_fqdn (Stdlib::Fqdn)
  • db_pass (Any)
  • db_user (Any)
  • db_host (Any)
  • region (Any)
  • dhcp_domain (Any)
  • ldap_user_pass (Any)
  • rabbit_user (Any)
  • rabbit_pass (Any)
  • log_agent_heartbeats (Any)
  • agent_down_time (Any)
  • bind_port (Stdlib::Port)
  • enforce_policy_scope (Boolean)
  • enforce_new_policy_defaults (Boolean)
  • firewall_driver (String[1])
  • type_drivers (Array[String[1]])
  • tenant_network_types (Array[String[1]])
  • mechanism_drivers (Array[String[1]])


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
52
53
54
55
56
57
58
59
60
# File 'modules/openstack/manifests/neutron/common/caracal.pp', line 3

class openstack::neutron::common::caracal(
    Array[Stdlib::Fqdn] $memcached_nodes,
    Array[Stdlib::Fqdn] $rabbitmq_nodes,
    Stdlib::Fqdn $keystone_fqdn,
    $db_pass,
    $db_user,
    $db_host,
    $region,
    $dhcp_domain,
    $ldap_user_pass,
    $rabbit_user,
    $rabbit_pass,
    $log_agent_heartbeats,
    $agent_down_time,
    Stdlib::Port $bind_port,
    Boolean $enforce_policy_scope,
    Boolean $enforce_new_policy_defaults,
    String[1] $firewall_driver,
    Array[String[1]] $type_drivers,
    Array[String[1]] $tenant_network_types,
    Array[String[1]] $mechanism_drivers,
    ) {

    class { "openstack::neutron::common::caracal::${::lsbdistcodename}": }

    # Subtemplates of neutron.conf are going to want to know what
    #  version this is
    $version = inline_template("<%= @title.split(':')[-1] -%>")
    # And this, which is in hiera for every other service:
    $db_name = 'neutron'

    $keystone_auth_username = 'novaadmin'
    $keystone_auth_project = 'admin'
    file { '/etc/neutron/neutron.conf':
            owner     => 'neutron',
            group     => 'neutron',
            mode      => '0660',
            show_diff => false,
            content   => template('openstack/caracal/neutron/neutron.conf.erb'),
            require   => Package['neutron-common'];
    }

    file { '/etc/neutron/policy.yaml':
            owner   => 'root',
            group   => 'root',
            mode    => '0644',
            source  => 'puppet:///modules/openstack/caracal/neutron/policy.yaml',
            require => Package['neutron-common'];
    }

    file { '/etc/neutron/plugins/ml2/ml2_conf.ini':
        owner   => 'neutron',
        group   => 'neutron',
        mode    => '0744',
        content => template('openstack/caracal/neutron/plugins/ml2/ml2_conf.ini.erb'),
        require => Package['neutron-common'];
    }
}