Skip to content

Commit 6b20d11

Browse files
committed
Use contain rather than the anchor pattern
1 parent 389eab2 commit 6b20d11

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

manifests/server.pp

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,15 @@
7474
# Reload has its own ordering, specified by other defines
7575
class { "${pg}::reload": require => Class["${pg}::install"] }
7676

77-
anchor { "${pg}::start": }
78-
-> class { "${pg}::install": }
79-
-> class { "${pg}::initdb": }
80-
-> class { "${pg}::config": }
81-
-> class { "${pg}::service": }
82-
-> class { "${pg}::passwd": }
83-
-> anchor { "${pg}::end": }
77+
contain postgresql::server::install
78+
contain postgresql::server::initdb
79+
contain postgresql::server::config
80+
contain postgresql::server::service
81+
contain postgresql::server::passwd
82+
83+
Class['postgresql::server::install']
84+
-> Class['postgresql::server::initdb']
85+
-> Class['postgresql::server::config']
86+
-> Class['postgresql::server::service']
87+
-> Class['postgresql::server::passwd']
8488
}

0 commit comments

Comments
 (0)