Puppet Class: cloud::orchestration::api

Defined in:
manifests/orchestration/api.pp

Overview

Parameters:

  • ks_heat_internal_port (Any) (defaults to: $os_params::ks_heat_internal_port)
  • ks_heat_cfn_internal_port (Any) (defaults to: $os_params::ks_heat_cfn_internal_port)
  • ks_heat_cloudwatch_internal_port (Any) (defaults to: $os_params::ks_heat_cloudwatch_internal_port)
  • api_eth (Any) (defaults to: $os_params::api_eth)


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 'manifests/orchestration/api.pp', line 19

class cloud::orchestration::api(
  $ks_heat_internal_port            = $os_params::ks_heat_internal_port,
  $ks_heat_cfn_internal_port        = $os_params::ks_heat_cfn_internal_port,
  $ks_heat_cloudwatch_internal_port = $os_params::ks_heat_cloudwatch_internal_port,
  $api_eth                          = $os_params::api_eth,
) {

  include 'cloud::orchestration'

  class { 'heat::api':
    bind_host => $api_eth,
    bind_port => $ks_heat_internal_port
  }

  class { 'heat::api_cfn':
    bind_host => $api_eth,
    bind_port => $ks_heat_cfn_internal_port
  }

  class { 'heat::api_cloudwatch':
    bind_host => $api_eth,
    bind_port => $ks_heat_cloudwatch_internal_port
  }

  @@haproxy::balancermember{"${::fqdn}-heat_api":
    listening_service => 'heat_api_cluster',
    server_names      => $::hostname,
    ipaddresses       => $api_eth,
    ports             => $ks_heat_internal_port,
    options           => 'check inter 2000 rise 2 fall 5'
  }

  @@haproxy::balancermember{"${::fqdn}-heat_cfn_api":
    listening_service => 'heat_cfn_api_cluster',
    server_names      => $::hostname,
    ipaddresses       => $api_eth,
    ports             => $ks_heat_cfn_internal_port,
    options           => 'check inter 2000 rise 2 fall 5'
  }

  @@haproxy::balancermember{"${::fqdn}-heat_cloudwatch_api":
    listening_service => 'heat_cloudwatch_api_cluster',
    server_names      => $::hostname,
    ipaddresses       => $api_eth,
    ports             => $ks_heat_cloudwatch_internal_port,
    options           => 'check inter 2000 rise 2 fall 5'
  }

}