Puppet Class: openstack::glance::service::queens

Defined in:
modules/openstack/manifests/glance/service/queens.pp

Overview

Parameters:

  • db_user (Any)
  • db_pass (Any)
  • db_name (Any)
  • db_host (Any)
  • glance_data_dir (Any)
  • ldap_user_pass (Any)
  • keystone_admin_uri (Any)
  • keystone_public_uri (Any)
  • api_bind_port (Stdlib::Port)
  • registry_bind_port (Stdlib::Port)


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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'modules/openstack/manifests/glance/service/queens.pp', line 1

class openstack::glance::service::queens(
    $db_user,
    $db_pass,
    $db_name,
    $db_host,
    $glance_data_dir,
    $ldap_user_pass,
    $keystone_admin_uri,
    $keystone_public_uri,
    Stdlib::Port $api_bind_port,
    Stdlib::Port $registry_bind_port,
) {
    require "openstack::serverpackages::queens::${::lsbdistcodename}"

    package { 'glance':
        ensure => 'present',
    }

    file {
        '/etc/glance/glance-api.conf':
            content   => template('openstack/queens/glance/glance-api.conf.erb'),
            owner     => 'glance',
            group     => 'nogroup',
            mode      => '0440',
            show_diff => false,
            notify    => Service['glance-api'],
            require   => Package['glance'];
        '/etc/glance/glance-registry.conf':
            content => template('openstack/queens/glance/glance-registry.conf.erb'),
            owner   => 'glance',
            group   => 'nogroup',
            mode    => '0440',
            notify  => Service['glance-registry'],
            require => Package['glance'];
        '/etc/glance/policy.json':
            ensure  => 'absent';
        '/etc/glance/policy.yaml':
            source  => 'puppet:///modules/openstack/queens/glance/policy.yaml',
            owner   => 'root',
            group   => 'root',
            mode    => '0644',
            notify  => Service['glance-api'],
            require => Package['glance'];
        '/etc/init.d/glance-api':
            content => template('openstack/queens/glance/glance-api'),
            owner   => 'root',
            group   => 'root',
            mode    => '0755',
            notify  => Service['glance-api'],
            require => Package['glance'];
    }
}