Puppet Class: openstack::glance::service

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

Overview

Parameters:

  • active (Any)
  • version (Any)
  • db_user (Any)
  • db_pass (Any)
  • db_name (Any)
  • db_host (Any)
  • glance_data_dir (Any)
  • ldap_user_pass (Any)
  • keystone_fqdn (Any)
  • api_bind_port (Stdlib::Port)
  • ceph_pool (String)
  • glance_backends (Any)
  • memcached_nodes (Array[Stdlib::Fqdn])
  • enforce_policy_scope (Boolean)
  • enforce_new_policy_defaults (Boolean)


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.pp', line 1

class openstack::glance::service(
    $active,
    $version,
    $db_user,
    $db_pass,
    $db_name,
    $db_host,
    $glance_data_dir,
    $ldap_user_pass,
    $keystone_fqdn,
    Stdlib::Port $api_bind_port,
    String $ceph_pool,
    $glance_backends,
    Array[Stdlib::Fqdn] $memcached_nodes,
    Boolean $enforce_policy_scope,
    Boolean $enforce_new_policy_defaults,
) {

    class { "openstack::glance::service::${version}":
        db_user                     => $db_user,
        db_pass                     => $db_pass,
        db_name                     => $db_name,
        db_host                     => $db_host,
        glance_data_dir             => $glance_data_dir,
        ldap_user_pass              => $ldap_user_pass,
        keystone_fqdn               => $keystone_fqdn,
        api_bind_port               => $api_bind_port,
        glance_backends             => $glance_backends,
        ceph_pool                   => $ceph_pool,
        memcached_nodes             => $memcached_nodes,
        enforce_policy_scope        => $enforce_policy_scope,
        enforce_new_policy_defaults => $enforce_new_policy_defaults,
    }

    file { $glance_data_dir:
        ensure  => directory,
        owner   => 'glance',
        group   => 'glance',
        require => Package['glance'],
        mode    => '0755',
    }

    service { 'glance-api':
        ensure  => $active,
        require => Package['glance'],
    }

    rsyslog::conf { 'glance':
        source   => 'puppet:///modules/openstack/glance/glance.rsyslog.conf',
        priority => 20,
    }
}