Puppet Class: openstack::cinder::backup

Defined in:
modules/openstack/manifests/cinder/backup.pp

Overview

Parameters:

  • version (String)
  • active (Boolean)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'modules/openstack/manifests/cinder/backup.pp', line 1

class openstack::cinder::backup (
    String  $version,
    Boolean $active,
) {
    require "openstack::serverpackages::${version}::${::lsbdistcodename}"
    require "openstack::cinder::config::${version}"

    ensure_packages(['cinder-backup'])

    openstack::patch { '/usr/lib/python3/dist-packages/cinder/backup/api.py':
        source  => "puppet:///modules/openstack/${version}/cinder/hacks/backup/api.py.patch",
        require => Package['cinder-backup'],
        notify  => Service['cinder-backup'],
    }

    service { 'cinder-backup':
        ensure    => $active,
        subscribe => Class["openstack::cinder::config::${version}"],
    }
}