Puppet Class: openstack::neutron::service

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

Overview

Parameters:

  • version (Any)


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

class openstack::neutron::service(
    $version,
    ) {

    if os_version('debian jessie') and ($version == 'mitaka') {
        $install_options = ['-t', 'jessie-backports']
    } else {
        $install_options = ''
    }

    package {'neutron-server':
        ensure          => 'present',
        install_options => $install_options,
    }

    service {'neutron-server':
        ensure    => 'running',
        require   => Package['neutron-server'],
        subscribe => [
                      File['/etc/neutron/neutron.conf'],
                      File['/etc/neutron/policy.json'],
                      File['/etc/neutron/plugins/ml2/ml2_conf.ini'],
            ],
    }
}