Puppet Class: openstack::neutron::common::rocky

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

Overview

Parameters:

  • openstack_controllers (Array[Stdlib::Fqdn])
  • keystone_api_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)
  • tld (Any)
  • log_agent_heartbeats (Any)
  • agent_down_time (Any)
  • bind_port (Stdlib::Port)
  • keystone_admin_uri (Stdlib::HTTPUrl)
  • keystone_public_uri (Stdlib::HTTPUrl)


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
# File 'modules/openstack/manifests/neutron/common/rocky.pp', line 1

class openstack::neutron::common::rocky(
    Array[Stdlib::Fqdn] $openstack_controllers,
    Stdlib::Fqdn $keystone_api_fqdn,
    $db_pass,
    $db_user,
    $db_host,
    $region,
    $dhcp_domain,
    $ldap_user_pass,
    $rabbit_user,
    $rabbit_pass,
    $tld,
    $log_agent_heartbeats,
    $agent_down_time,
    Stdlib::Port $bind_port,
    Stdlib::HTTPUrl $keystone_admin_uri,
    Stdlib::HTTPUrl $keystone_public_uri,
    ) {

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

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

    file { '/etc/neutron/policy.json':
        ensure => absent,
    }

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

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