Puppet Class: kickstack::node::dashboard

Inherits:
kickstack
Defined in:
manifests/node/dashboard.pp

Overview



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'manifests/node/dashboard.pp', line 1

class kickstack::node::dashboard inherits kickstack {

  $keystone_internal_address = getvar("${fact_prefix}keystone_internal_address")
  $nova_keystone_password = getvar("${fact_prefix}nova_keystone_password")

  case $::kickstack::rpc {
    'rabbitmq': {
      $amqp_host = getvar("${::kickstack::fact_prefix}rabbit_host")
      $amqp_password = getvar("${::kickstack::fact_prefix}rabbit_password")
    }
    'qpid': {
      $amqp_host = getvar("${::kickstack::fact_prefix}qpid_host")
      $amqp_password = getvar("${::kickstack::fact_prefix}qpid_password")
    }
  }

  if $keystone_internal_address {
    include kickstack::horizon
    if $nova_keystone_password and $amqp_host and $amqp_password {
      include kickstack::nova::vncproxy
    }
  }
}