Puppet Class: openstack::trove::service

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

Overview

Parameters:

  • version (String)
  • workers (Integer)
  • memcached_nodes (Array[Stdlib::Fqdn])
  • rabbitmq_nodes (Array[Stdlib::Fqdn])
  • db_user (String)
  • db_pass (String)
  • db_name (String)
  • db_host (Stdlib::Fqdn)
  • ldap_user_pass (String)
  • keystone_fqdn (Stdlib::Fqdn)
  • region (String)
  • api_bind_port (Stdlib::Port)
  • rabbit_user (String)
  • rabbit_pass (String)
  • trove_guest_rabbit_user (String)
  • trove_guest_rabbit_pass (String)
  • trove_service_user_pass (String)
  • trove_quay_pass (String)
  • designate_internal_uri (String)
  • trove_dns_zone (String)
  • trove_dns_zone_id (String)
  • enforce_policy_scope (Boolean)
  • enforce_new_policy_defaults (Boolean)
  • trove_service_project (String) (defaults to: 'trove')
  • trove_service_user (String) (defaults to: 'trove')
  • trove_quay_user (String) (defaults to: 'wikimedia-cloud-services+troveguest')


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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# File 'modules/openstack/manifests/trove/service.pp', line 1

class openstack::trove::service(
    String              $version,
    Integer             $workers,
    Array[Stdlib::Fqdn] $memcached_nodes,
    Array[Stdlib::Fqdn] $rabbitmq_nodes,
    String              $db_user,
    String              $db_pass,
    String              $db_name,
    Stdlib::Fqdn        $db_host,
    String              $ldap_user_pass,
    Stdlib::Fqdn        $keystone_fqdn,
    String              $region,
    Stdlib::Port        $api_bind_port,
    String              $rabbit_user,
    String              $rabbit_pass,
    String              $trove_guest_rabbit_user,
    String              $trove_guest_rabbit_pass,
    String              $trove_service_user_pass,
    String              $trove_quay_pass,
    String              $designate_internal_uri,
    String              $trove_dns_zone,
    String              $trove_dns_zone_id,
    Boolean             $enforce_policy_scope,
    Boolean             $enforce_new_policy_defaults,
    String              $trove_service_project = 'trove',
    String              $trove_service_user = 'trove',
    String              $trove_quay_user = 'wikimedia-cloud-services+troveguest',
) {
    class { "openstack::trove::service::${version}":
        memcached_nodes             => $memcached_nodes,
        rabbitmq_nodes              => $rabbitmq_nodes,
        workers                     => $workers,
        db_user                     => $db_user,
        db_pass                     => $db_pass,
        db_name                     => $db_name,
        db_host                     => $db_host,
        ldap_user_pass              => $ldap_user_pass,
        keystone_fqdn               => $keystone_fqdn,
        region                      => $region,
        api_bind_port               => $api_bind_port,
        rabbit_user                 => $rabbit_user,
        rabbit_pass                 => $rabbit_pass,
        trove_guest_rabbit_user     => $trove_guest_rabbit_user,
        trove_guest_rabbit_pass     => $trove_guest_rabbit_pass,
        trove_service_user_pass     => $trove_service_user_pass,
        trove_service_project       => $trove_service_project,
        trove_service_user          => $trove_service_user,
        trove_quay_user             => $trove_quay_user,
        trove_quay_pass             => $trove_quay_pass,
        designate_internal_uri      => $designate_internal_uri,
        trove_dns_zone              => $trove_dns_zone,
        trove_dns_zone_id           => $trove_dns_zone_id,
        enforce_policy_scope        => $enforce_policy_scope,
        enforce_new_policy_defaults => $enforce_new_policy_defaults,
    }

    service { 'trove-api':
        ensure  => running,
        require => Package['trove-api'],
    }

    service { 'trove-taskmanager':
        ensure  => running,
        require => Package['trove-taskmanager'],
    }

    service { 'trove-conductor':
        ensure  => running,
        require => Package['trove-conductor'],
    }
}