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

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

Overview

Parameters:

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

class profile::openstack::base::neutron::service(
    $version = lookup('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 29696) ACCEPT;",
    }
}