Puppet Class: tripleo::profile::base::placement

Defined in:
manifests/profile/base/placement.pp

Overview

Parameters:

  • bootstrap_node (Any) (defaults to: lookup('placement_api_short_bootstrap_node_name', undef, undef, undef))
  • step (Any) (defaults to: Integer(lookup('step')))


29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'manifests/profile/base/placement.pp', line 29

class tripleo::profile::base::placement (
  $bootstrap_node = lookup('placement_api_short_bootstrap_node_name', undef, undef, undef),
  $step           = Integer(lookup('step')),
) {

  if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
    $sync_db = true
  } else {
    $sync_db = false
  }

  if $step >= 4 or ($step >= 3 and $sync_db) {
    include placement
    include placement::config
    include placement::db
    include placement::logging
  }
}