Puppet Class: profile::openstack::base::trove

Defined in:
modules/profile/manifests/openstack/base/trove.pp

Overview

Parameters:

  • version (String) (defaults to: lookup('profile::openstack::base::version'))
  • workers (Integer) (defaults to: lookup('profile::openstack::base::trove::workers'))
  • openstack_controllers (Array[Stdlib::Fqdn]) (defaults to: lookup('profile::openstack::base::openstack_controllers'))
  • rabbitmq_nodes (Array[Stdlib::Fqdn]) (defaults to: lookup('profile::openstack::base::rabbitmq_nodes'))
  • db_user (String) (defaults to: lookup('profile::openstack::base::trove::db_user'))
  • db_pass (String) (defaults to: lookup('profile::openstack::base::trove::db_pass'))
  • db_name (String) (defaults to: lookup('profile::openstack::base::trove::db_name'))
  • db_host (Stdlib::Fqdn) (defaults to: lookup('profile::openstack::base::trove::db_host'))
  • ldap_user_pass (String) (defaults to: lookup('profile::openstack::base::ldap_user_pass'))
  • keystone_fqdn (Stdlib::Fqdn) (defaults to: lookup('profile::openstack::base::keystone_api_fqdn'))
  • auth_port (Stdlib::Port) (defaults to: lookup('profile::openstack::base::keystone::auth_port'))
  • internal_auth_port (Stdlib::Port) (defaults to: lookup('profile::openstack::base::keystone::internal_port'))
  • region (String) (defaults to: lookup('profile::openstack::base::region'))
  • api_bind_port (Stdlib::Port) (defaults to: lookup('profile::openstack::base::trove::api_bind_port'))
  • rabbit_user (String) (defaults to: lookup('profile::openstack::base::nova::rabbit_user'))
  • rabbit_pass (String) (defaults to: lookup('profile::openstack::base::nova::rabbit_pass'))
  • trove_guest_rabbit_user (String) (defaults to: lookup('profile::openstack::base::trove::trove_guest_rabbit_user'))
  • trove_guest_rabbit_pass (String) (defaults to: lookup('profile::openstack::base::trove::trove_guest_rabbit_pass'))
  • trove_service_user_pass (String) (defaults to: lookup('profile::openstack::base::trove::trove_user_pass'))
  • trove_quay_user (String) (defaults to: lookup('profile::openstack::base::trove::quay_user'))
  • trove_quay_pass (String) (defaults to: lookup('profile::openstack::base::trove::quay_pass'))
  • trove_dns_zone (String) (defaults to: lookup('profile::openstack::base::trove::dns_zone'))
  • trove_dns_zone_id (String) (defaults to: lookup('profile::openstack::base::trove::dns_zone_id'))


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
# File 'modules/profile/manifests/openstack/base/trove.pp', line 1

class profile::openstack::base::trove(
    String              $version                 = lookup('profile::openstack::base::version'),
    Integer             $workers                 = lookup('profile::openstack::base::trove::workers'),
    Array[Stdlib::Fqdn] $openstack_controllers   = lookup('profile::openstack::base::openstack_controllers'),
    Array[Stdlib::Fqdn] $rabbitmq_nodes          = lookup('profile::openstack::base::rabbitmq_nodes'),
    String              $db_user                 = lookup('profile::openstack::base::trove::db_user'),
    String              $db_pass                 = lookup('profile::openstack::base::trove::db_pass'),
    String              $db_name                 = lookup('profile::openstack::base::trove::db_name'),
    Stdlib::Fqdn        $db_host                 = lookup('profile::openstack::base::trove::db_host'),
    String              $ldap_user_pass          = lookup('profile::openstack::base::ldap_user_pass'),
    Stdlib::Fqdn        $keystone_fqdn           = lookup('profile::openstack::base::keystone_api_fqdn'),
    Stdlib::Port        $auth_port               = lookup('profile::openstack::base::keystone::auth_port'),
    Stdlib::Port        $internal_auth_port      = lookup('profile::openstack::base::keystone::internal_port'),
    String              $region                  = lookup('profile::openstack::base::region'),
    Stdlib::Port        $api_bind_port           = lookup('profile::openstack::base::trove::api_bind_port'),
    String              $rabbit_user             = lookup('profile::openstack::base::nova::rabbit_user'),
    String              $rabbit_pass             = lookup('profile::openstack::base::nova::rabbit_pass'),
    String              $trove_guest_rabbit_user = lookup('profile::openstack::base::trove::trove_guest_rabbit_user'),
    String              $trove_guest_rabbit_pass = lookup('profile::openstack::base::trove::trove_guest_rabbit_pass'),
    String              $trove_service_user_pass = lookup('profile::openstack::base::trove::trove_user_pass'),
    String              $trove_quay_user         = lookup('profile::openstack::base::trove::quay_user'),
    String              $trove_quay_pass         = lookup('profile::openstack::base::trove::quay_pass'),
    String              $trove_dns_zone          = lookup('profile::openstack::base::trove::dns_zone'),
    String              $trove_dns_zone_id       = lookup('profile::openstack::base::trove::dns_zone_id'),
    ) {

    $keystone_admin_uri = "https://${keystone_fqdn}:${auth_port}"
    $keystone_internal_uri = "https://${keystone_fqdn}:${internal_auth_port}"
    $designate_internal_uri = "https://${keystone_fqdn}:29001"

    class { '::openstack::trove::service':
        version                 => $version,
        workers                 => $workers,
        openstack_controllers   => $openstack_controllers,
        rabbitmq_nodes          => $rabbitmq_nodes,
        db_user                 => $db_user,
        db_pass                 => $db_pass,
        db_name                 => $db_name,
        db_host                 => $db_host,
        ldap_user_pass          => $ldap_user_pass,
        keystone_admin_uri      => $keystone_admin_uri,
        keystone_internal_uri   => $keystone_internal_uri,
        designate_internal_uri  => $designate_internal_uri,
        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_quay_user         => $trove_quay_user,
        trove_quay_pass         => $trove_quay_pass,
        trove_dns_zone          => $trove_dns_zone,
        trove_dns_zone_id       => $trove_dns_zone_id,
    }

    include ::network::constants
    $prod_networks = join($network::constants::production_networks, ' ')
    $labs_networks = join($network::constants::labs_networks, ' ')

    openstack::db::project_grants { 'trove':
        access_hosts => $openstack_controllers,
        db_name      => $db_name,
        db_user      => $db_user,
        db_pass      => $db_pass,
    }
}