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)
  • glance_image_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
53
54
# 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,
    $glance_image_dir,
    $ldap_user_pass,
    $keystone_admin_uri,
    $keystone_public_uri,
    Stdlib::Port $api_bind_port,
    Stdlib::Port $registry_bind_port,
) {

    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_admin_uri  => $keystone_admin_uri,
        keystone_public_uri => $keystone_public_uri,
        api_bind_port       => $api_bind_port,
        registry_bind_port  => $registry_bind_port,
    }

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

    # Glance expects some images that are actually in /srv/glance/images to
    #  be in /a/glance/images instead.  This link should keep everyone happy.
    file {'/a':
        ensure => link,
        target => '/srv',
    }

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

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