Loading manifests/config.pp +4 −0 Original line number Diff line number Diff line Loading @@ -30,6 +30,10 @@ define postfix::config ($value, $ensure = present) { validate_re($ensure, ['present', 'absent'], "\$ensure must be either 'present' or 'absent', got '${ensure}'") if (!defined(Class['postfix'])) { fail 'You must define class postfix before using postfix::config!' } Augeas { incl => '/etc/postfix/main.cf', lens => 'Postfix_Main.lns', Loading manifests/hash.pp +4 −1 Original line number Diff line number Diff line Loading @@ -37,6 +37,10 @@ define postfix::hash ( validate_re($ensure, ['present', 'absent'], "\$ensure must be either 'present' or 'absent', got '${ensure}'") if (!defined(Class['postfix'])) { fail 'You must define class postfix before using postfix::config!' } if $source and $content { fail 'You must provide either \'source\' or \'content\', not both' } Loading Loading @@ -65,6 +69,5 @@ define postfix::hash ( #creates => "${name}.db", # this prevents postmap from being run ! subscribe => File[$name], refreshonly => true, require => Package['postfix'], } } manifests/init.pp +2 −3 Original line number Diff line number Diff line Loading @@ -158,7 +158,6 @@ class postfix ( } # Relationships Class['postfix'] -> Postfix::Config <| |> Class['postfix'] -> Postfix::Transport <| |> Class['postfix'] -> Postfix::Virtual <| |> Postfix::Config <| |> ~> Class['postfix::service'] Class['postfix'] -> Postfix::Hash <| |> } Loading
manifests/config.pp +4 −0 Original line number Diff line number Diff line Loading @@ -30,6 +30,10 @@ define postfix::config ($value, $ensure = present) { validate_re($ensure, ['present', 'absent'], "\$ensure must be either 'present' or 'absent', got '${ensure}'") if (!defined(Class['postfix'])) { fail 'You must define class postfix before using postfix::config!' } Augeas { incl => '/etc/postfix/main.cf', lens => 'Postfix_Main.lns', Loading
manifests/hash.pp +4 −1 Original line number Diff line number Diff line Loading @@ -37,6 +37,10 @@ define postfix::hash ( validate_re($ensure, ['present', 'absent'], "\$ensure must be either 'present' or 'absent', got '${ensure}'") if (!defined(Class['postfix'])) { fail 'You must define class postfix before using postfix::config!' } if $source and $content { fail 'You must provide either \'source\' or \'content\', not both' } Loading Loading @@ -65,6 +69,5 @@ define postfix::hash ( #creates => "${name}.db", # this prevents postmap from being run ! subscribe => File[$name], refreshonly => true, require => Package['postfix'], } }
manifests/init.pp +2 −3 Original line number Diff line number Diff line Loading @@ -158,7 +158,6 @@ class postfix ( } # Relationships Class['postfix'] -> Postfix::Config <| |> Class['postfix'] -> Postfix::Transport <| |> Class['postfix'] -> Postfix::Virtual <| |> Postfix::Config <| |> ~> Class['postfix::service'] Class['postfix'] -> Postfix::Hash <| |> }