Puppet Class: heat::deps

Defined in:
manifests/deps.pp

Overview

Class: heat::deps

Heat anchors and dependency management


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
# File 'manifests/deps.pp', line 5

class heat::deps {
  # Setup anchors for install, config and service phases of the module.  These
  # anchors allow external modules to hook the begin and end of any of these
  # phases.  Package or service management can also be replaced by ensuring the
  # package is absent or turning off service management and having the
  # replacement depend on the appropriate anchors.  When applicable, end tags
  # should be notified so that subscribers can determine if installation,
  # config or service state changed and act on that if needed.
  anchor { 'heat::install::begin': }
  -> Package<| tag == 'heat-package'|>
  ~> anchor { 'heat::install::end': }
  -> anchor { 'heat::config::begin': }
  -> Heat_config<||>
  ~> anchor { 'heat::config::end': }
  -> anchor { 'heat::db::begin': }
  -> anchor { 'heat::db::end': }
  ~> anchor { 'heat::dbsync::begin': }
  -> anchor { 'heat::dbsync::end': }
  ~> anchor { 'heat::service::begin': }
  ~> Service<| tag == 'heat-service' |>
  ~> anchor { 'heat::service::end': }

  # paste-api.ini config should occur in the config block also.
  Anchor['heat::config::begin']
  -> Heat_api_paste_ini<||>
  ~> Anchor['heat::config::end']

  # all cache settings should be applied and all packages should be installed
  # before service startup
  Oslo::Cache<||> -> Anchor['heat::service::begin']

  # policy config should occur in the config block also.
  Anchor['heat::config::begin']
  -> Openstacklib::Policy<| tag == 'heat' |>
  ~> Anchor['heat::config::end']

  # On any uwsgi config change, we must restart Heat API.
  Anchor['heat::config::begin']
  -> Heat_api_uwsgi_config<||>
  ~> Anchor['heat::config::end']

  # On any uwsgi config change, we must restart Heat API CFN.
  Anchor['heat::config::begin']
  -> Heat_api_cfn_uwsgi_config<||>
  ~> Anchor['heat::config::end']

  # all db settings should be applied and all packages should be installed
  # before dbsync starts
  Oslo::Db<||> -> Anchor['heat::dbsync::begin']

  # Installation or config changes will always restart services.
  Anchor['heat::install::end'] ~> Anchor['heat::service::begin']
  Anchor['heat::config::end']  ~> Anchor['heat::service::begin']
}