Puppet Class: openstack::nova::common::base

Defined in:
modules/openstack/manifests/nova/common/base.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
# File 'modules/openstack/manifests/nova/common/base.pp', line 1

class openstack::nova::common::base(
    $version,
    ) {

    class { "openstack::nova::common::base::${version}::${::lsbdistcodename}": }

    # For some reason the Mitaka nova-common package installs
    #  a logrotate rule for nova/*.log and also a nova/nova-manage.log.
    #  This is redundant and makes log-rotate unhappy.
    # Not to mention, nova-manage.log is very low traffic and doesn't
    #  really need to be rotated anyway.
    file { '/etc/logrotate.d/nova-manage':
        ensure  => 'absent',
        require => Package['nova-common'],
    }

    file { '/etc/nova/policy.json':
        source  => "puppet:///modules/openstack/${version}/nova/common/policy.json",
        mode    => '0644',
        owner   => 'root',
        group   => 'root',
        require => Package['nova-common'],
    }
}