LEFT | RIGHT |
1 class base { | 1 class base { |
2 stage {'pre': before => Stage['main']} | 2 stage {'pre': before => Stage['main']} |
3 stage {'post': } | 3 stage {'post': require => Stage['main']} |
4 Stage['main'] -> Stage['post'] | |
5 | 4 |
6 class {'apt': | 5 class {'apt': |
7 stage => 'pre', | 6 stage => 'pre', |
8 always_apt_update => true | 7 always_apt_update => true |
9 } | 8 } |
10 | 9 |
11 class {'users': | 10 class {'users': |
12 stage => 'pre', | 11 stage => 'pre', |
13 } | 12 } |
14 | 13 |
15 include private::users, postfix | 14 include private::users, postfix |
16 | 15 |
17 package {['mercurial', 'vim', 'emacs']: ensure => present} | 16 package {['mercurial', 'vim', 'emacs']: ensure => present} |
18 | 17 |
19 file {'/etc/timezone': | 18 file {'/etc/timezone': |
20 ensure => file, | 19 ensure => file, |
21 owner => root, | 20 owner => root, |
22 group => root, | 21 group => root, |
23 mode => 0644, | 22 mode => 0644, |
24 source => 'puppet:///modules/base/timezone' | 23 source => 'puppet:///modules/base/timezone' |
25 } | 24 } |
26 | 25 |
27 class {'logrotate': | 26 class {'logrotate': |
28 stage => 'post' | 27 stage => 'post' |
29 } | 28 } |
30 } | 29 } |
LEFT | RIGHT |