Use the contain function instead of anchors

This commit is contained in:
Nate McCurdy 2019-03-08 11:12:44 -08:00
parent 19f388222d
commit 390d5a40e4

View File

@ -30,10 +30,12 @@ class nslcd (
Optional[String[1]] $ldap_tls_cacertfile = undef,
) inherits nslcd::params {
anchor { 'nslcd::begin': }
-> class { 'nslcd::install': }
-> class { 'nslcd::config': }
~> class { 'nslcd::service': }
-> anchor { 'nslcd::end': }
contain nslcd::install
contain nslcd::config
contain nslcd::service
Class['nslcd::install']
-> Class['nslcd::config']
~> Class['nslcd::service']
}