Puppet Class: watcher::deps

Defined in:
manifests/deps.pp

Overview

Class: watcher::deps

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

class watcher::deps {
  anchor { 'watcher::install::begin': }
  -> Package<| tag == 'watcher-package'|>
  ~> anchor { 'watcher::install::end': }
  -> anchor { 'watcher::config::begin': }
  -> Watcher_config<||>
  ~> anchor { 'watcher::config::end': }
  ~> anchor { 'watcher::db::begin': }
  ~> anchor { 'watcher::db::end': }
  ~> anchor { 'watcher::db::create_schema::begin': }
  ~> anchor { 'watcher::db::create_schema::end': }
  ~> anchor { 'watcher::db::upgrade::begin': }
  ~> anchor { 'watcher::db::upgrade::end': }
  ~> anchor { 'watcher::service::begin': }
  ~> Service<| tag == 'watcher-service' |>
  ~> anchor { 'watcher::service::end': }

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

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

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

  Anchor['watcher::install::end'] ~> Anchor['watcher::service::begin']
  Anchor['watcher::config::end']  ~> Anchor['watcher::service::begin']

  anchor { 'watcher-start':
    require => Anchor['watcher::install::end'],
    before  => Anchor['watcher::config::begin'],
  }
}