File: before.pp

package info (click to toggle)
ruby-rspec-puppet 4.0.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,444 kB
  • sloc: ruby: 6,377; makefile: 6
file content (33 lines) | stat: -rw-r--r-- 721 bytes parent folder | download | duplicates (3)
1
2
3
4
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
class relationships::before {
  notify { 'foo':
    before => [Notify['bar']],
  }

  notify { 'bar': }
  notify { 'baz': }

  file { '/tmp/foo': ensure => directory }
  file { '/tmp/foo/bar': ensure => file, group => 'foo' }

  notify { 'bazz': before => File['/tmp/foo'] }
  notify { 'qux': require => File['/tmp/foo/bar'] }

  Notify['foo'] -> Notify['baz']
  Notify['baz'] <- Notify['bar']

  class { '::relationships::before::pre': } ->
  class { '::relationships::before::middle': } ->
  class { '::relationships::before::post': }
}

class relationships::before::pre {
  notify { 'pre': }
}

class relationships::before::middle {
  notify { 'middle': }
}

class relationships::before::post {
  notify { 'post': }
}