Puppet Class: cubbystack::neutron::plugins::linuxbridge

Defined in:
manifests/neutron/plugins/linuxbridge.pp

Overview

Class: cubbystack::neutron::plugins::linuxbridge

Configures the neutron-plugin-linuxbridge

Parameters

package_ensure

The status of the neutron-plugin-linuxbridge package Defaults to latest

service_enable

The status of the neutron-plugin-linuxbridge service Defaults to true

Parameters:

  • package_ensure (Any) (defaults to: latest)
  • service_enable (Any) (defaults to: true)


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
# File 'manifests/neutron/plugins/linuxbridge.pp', line 15

class cubbystack::neutron::plugins::linuxbridge (
  $package_ensure = latest,
  $service_enable = true,
) {

  include ::cubbystack::params

  ## Meta settings and globals
  $tags = ['openstack', 'neutron', 'neutron-plugin-linuxbridge']

  file { '/etc/init/neutron-plugin-linuxbridge-agent.conf':
    ensure  => present,
    owner   => 'root',
    group   => 'root',
    mode    => '0644',
    source  => 'puppet:///modules/cubbystack/neutron/neutron-plugin-linuxbridge-agent.conf',
    tag     => $tags,
    notify  => Service[$::cubbystack::params::neutron_plugin_linuxbridge_service_name],
    require => Package[$::cubbystack::params::neutron_plugin_linuxbridge_package_name],
  }

  cubbystack::functions::generic_service { 'neutron-plugin-linuxbridge':
    service_enable => $service_enable,
    package_ensure => $package_ensure,
    package_name   => $::cubbystack::params::neutron_plugin_linuxbridge_package_name,
    service_name   => $::cubbystack::params::neutron_plugin_linuxbridge_service_name,
    tags           => $tags,
  }

}