Puppet Class: profile::openstack::base::neutron::service

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

Overview

Parameters:

  • version (Any) (defaults to: hiera('profile::openstack::base::version'))
  • bind_port (Stdlib::Port) (defaults to: lookup('profile::openstack::base::neutron::bind_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
# File 'modules/profile/manifests/openstack/base/neutron/service.pp', line 1

class profile::openstack::base::neutron::service(
    $version = hiera('profile::openstack::base::version'),
    Stdlib::Port $bind_port = lookup('profile::openstack::base::neutron::bind_port'),
    ) {

    include ::network::constants
    $prod_networks = join($::network::constants::production_networks, ' ')
    $labs_networks = join($::network::constants::labs_networks, ' ')

    class {'::openstack::neutron::service':
        version   => $version,
        active    => true,
        bind_port => $bind_port,
    }
    contain '::openstack::neutron::service'

    ferm::rule{'neutron-server-api':
        ensure => 'present',
        rule   => "saddr (${prod_networks} ${labs_networks}) proto tcp dport (9696) ACCEPT;",
    }

    # restricted proxy for apt
    ferm::rule{'forward-proxy':
        ensure => 'present',
        rule   => 'saddr (172.16.128.0/24 10.196.16.0/21) proto tcp dport (5001) ACCEPT;',
    }
}