Puppet Class: profile::openstack::base::nova::common

Defined in:
modules/profile/manifests/openstack/base/nova/common.pp

Overview

Parameters:

  • version (Any) (defaults to: lookup('profile::openstack::base::version'))
  • region (Any) (defaults to: lookup('profile::openstack::base::region'))
  • db_user (Any) (defaults to: lookup('profile::openstack::base::nova::db_user'))
  • db_pass (Any) (defaults to: lookup('profile::openstack::base::nova::db_pass'))
  • db_host (Any) (defaults to: lookup('profile::openstack::base::nova::db_host'))
  • db_name (Any) (defaults to: lookup('profile::openstack::base::nova::db_name'))
  • db_name_api (Any) (defaults to: lookup('profile::openstack::base::nova::db_name_api'))
  • db_name_cell (Any) (defaults to: lookup('profile::openstack::base::nova::db_name_cell'))
  • compute_workers (Any) (defaults to: lookup('profile::openstack::base::nova::compute_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'))
  • keystone_fqdn (Stdlib::Fqdn) (defaults to: lookup('profile::openstack::base::keystone_api_fqdn'))
  • scheduler_filters (Any) (defaults to: lookup('profile::openstack::base::nova::scheduler_filters'))
  • ldap_user_pass (Any) (defaults to: lookup('profile::openstack::base::ldap_user_pass'))
  • rabbit_user (Any) (defaults to: lookup('profile::openstack::base::nova::rabbit_user'))
  • rabbit_pass (Any) (defaults to: lookup('profile::openstack::base::rabbit_pass'))
  • metadata_proxy_shared_secret (Any) (defaults to: lookup('profile::openstack::base::neutron::metadata_proxy_shared_secret'))
  • metadata_listen_port (Stdlib::Port) (defaults to: lookup('profile::openstack::base::nova::metadata_listen_port'))
  • osapi_compute_listen_port (Stdlib::Port) (defaults to: lookup('profile::openstack::base::nova::osapi_compute_listen_port'))
  • is_control_node (Boolean) (defaults to: lookup('profile::openstack::eqiad1::nova::common::is_control_node'))


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

class profile::openstack::base::nova::common(
    $version = lookup('profile::openstack::base::version'),
    $region = lookup('profile::openstack::base::region'),
    $db_user = lookup('profile::openstack::base::nova::db_user'),
    $db_pass = lookup('profile::openstack::base::nova::db_pass'),
    $db_host = lookup('profile::openstack::base::nova::db_host'),
    $db_name = lookup('profile::openstack::base::nova::db_name'),
    $db_name_api = lookup('profile::openstack::base::nova::db_name_api'),
    $db_name_cell = lookup('profile::openstack::base::nova::db_name_cell'),
    $compute_workers = lookup('profile::openstack::base::nova::compute_workers'),
    Array[Stdlib::Fqdn] $openstack_controllers = lookup('profile::openstack::base::openstack_controllers'),
    Array[Stdlib::Fqdn] $rabbitmq_nodes = lookup('profile::openstack::base::rabbitmq_nodes'),
    Stdlib::Fqdn $keystone_fqdn = lookup('profile::openstack::base::keystone_api_fqdn'),
    $scheduler_filters = lookup('profile::openstack::base::nova::scheduler_filters'),
    $ldap_user_pass = lookup('profile::openstack::base::ldap_user_pass'),
    $rabbit_user = lookup('profile::openstack::base::nova::rabbit_user'),
    $rabbit_pass = lookup('profile::openstack::base::rabbit_pass'),
    $metadata_proxy_shared_secret = lookup('profile::openstack::base::neutron::metadata_proxy_shared_secret'),
    Stdlib::Port $metadata_listen_port = lookup('profile::openstack::base::nova::metadata_listen_port'),
    Stdlib::Port $osapi_compute_listen_port = lookup('profile::openstack::base::nova::osapi_compute_listen_port'),
    Boolean $is_control_node = lookup('profile::openstack::eqiad1::nova::common::is_control_node'),
    ) {

    class {'::openstack::nova::common':
        version                      => $version,
        region                       => $region,
        db_user                      => $db_user,
        db_pass                      => $db_pass,
        db_host                      => $db_host,
        db_name                      => $db_name,
        db_name_api                  => $db_name_api,
        openstack_controllers        => $openstack_controllers,
        rabbitmq_nodes               => $rabbitmq_nodes,
        keystone_fqdn                => $keystone_fqdn,
        scheduler_filters            => $scheduler_filters,
        ldap_user_pass               => $ldap_user_pass,
        rabbit_user                  => $rabbit_user,
        rabbit_pass                  => $rabbit_pass,
        metadata_proxy_shared_secret => $metadata_proxy_shared_secret,
        compute_workers              => $compute_workers,
        metadata_listen_port         => $metadata_listen_port,
        osapi_compute_listen_port    => $osapi_compute_listen_port,
        is_control_node              => $is_control_node,
    }
    contain '::openstack::nova::common'

    openstack::db::project_grants { 'nova_api':
        access_hosts => $openstack_controllers,
        db_name      => $db_name_api,
        db_user      => $db_user,
        db_pass      => $db_pass,
        project_name => 'nova',
    }
    openstack::db::project_grants { 'nova':
        access_hosts => $openstack_controllers,
        db_name      => $db_name,
        db_user      => $db_user,
        db_pass      => $db_pass,
        project_name => 'nova',
    }
    openstack::db::project_grants { 'nova_cell':
        access_hosts => $openstack_controllers,
        db_name      => $db_name_cell,
        db_user      => $db_user,
        db_pass      => $db_pass,
        project_name => 'nova',
    }
}