Puppet Class: profile::openstack::base::neutron::l3_agent

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

Overview

Parameters:

  • version (Any) (defaults to: hiera('profile::openstack::base::version'))
  • dmz_cidr (Any) (defaults to: hiera('profile::openstack::base::neutron::dmz_cidr'))
  • network_public_ip (Any) (defaults to: hiera('profile::openstack::base::neutron::network_public_ip'))
  • report_interval (Any) (defaults to: hiera('profile::openstack::base::neutron::report_interval'))
  • base_interface (Any) (defaults to: lookup('profile::openstack::base::neutron::base_interface'))
  • network_flat_interface_vlan_external (Any) (defaults to: lookup('profile::openstack::base::neutron::network_flat_interface_vlan_external'))
  • network_flat_interface_vlan (Any) (defaults to: lookup('profile::openstack::base::neutron::network_flat_interface_vlan'))
  • only_dmz_cidr_hack (Boolean) (defaults to: lookup('profile::openstack::base::neutron::l3_agent_only_dmz_cidr_hack', {default_value => false}))


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

class profile::openstack::base::neutron::l3_agent(
    $version = hiera('profile::openstack::base::version'),
    $dmz_cidr = hiera('profile::openstack::base::neutron::dmz_cidr'),
    $network_public_ip = hiera('profile::openstack::base::neutron::network_public_ip'),
    $report_interval = hiera('profile::openstack::base::neutron::report_interval'),
    $base_interface = lookup('profile::openstack::base::neutron::base_interface'),
    $network_flat_interface_vlan_external = lookup('profile::openstack::base::neutron::network_flat_interface_vlan_external'),
    $network_flat_interface_vlan = lookup('profile::openstack::base::neutron::network_flat_interface_vlan'),
    Boolean $only_dmz_cidr_hack = lookup('profile::openstack::base::neutron::l3_agent_only_dmz_cidr_hack', {default_value => false}),
    ) {

    interface::tagged { "${base_interface}.${$network_flat_interface_vlan_external}":
        base_interface => $base_interface,
        vlan_id        => $network_flat_interface_vlan_external,
        method         => 'manual',
        up             => 'ip link set $IFACE up',
        down           => 'ip link set $IFACE down',
    }

    interface::tagged { "${base_interface}.${$network_flat_interface_vlan}":
        base_interface => $base_interface,
        vlan_id        => $network_flat_interface_vlan,
        method         => 'manual',
        up             => 'ip link set $IFACE up',
        down           => 'ip link set $IFACE down',
    }

    class {'::openstack::neutron::l3_agent':
        version            => $version,
        dmz_cidr_array     => $dmz_cidr,
        network_public_ip  => $network_public_ip,
        report_interval    => $report_interval,
        only_dmz_cidr_hack => $only_dmz_cidr_hack,
    }
    contain '::openstack::neutron::l3_agent'
}