Loading manifests/hash.pp +2 −0 Original line number Diff line number Diff line Loading @@ -28,6 +28,7 @@ define postfix::hash ( Enum['present', 'absent'] $ensure='present', Variant[Array[String], String, Undef] $source=undef, Variant[Array[String], String, Undef] $content=undef, Variant[String[4,4], Undef] $mode='0640', ) { include ::postfix::params Loading @@ -47,6 +48,7 @@ define postfix::hash ( content => $content, type => 'hash', path => $name, mode => $mode, } Class['postfix'] -> Postfix::Hash[$title] Loading manifests/map.pp +5 −3 Original line number Diff line number Diff line Loading @@ -11,7 +11,8 @@ # [*source*] - file source. # [*type*] - type of the postfix map (valid values are cidr, pcre, hash...) # [*path*] - path of the created file. By default it is placed in the # postfix directory # postfix directory. # [*mode*] - mode of the created file. By default it is '0640'. # # === Requires # Loading @@ -32,6 +33,7 @@ define postfix::map ( Variant[Array[String], String, Undef] $content = undef, String $type = 'hash', Stdlib::Absolutepath $path = "/etc/postfix/${name}", String[4,4] $mode = '0640' ) { include ::postfix::params Loading Loading @@ -61,7 +63,7 @@ define postfix::map ( content => $content, owner => 'root', group => 'postfix', mode => '0644', mode => $mode, require => Package['postfix'], notify => $manage_notify, } Loading @@ -72,7 +74,7 @@ define postfix::map ( path => "${path}.db", owner => 'root', group => 'postfix', mode => '0644', mode => $mode, require => [File["postfix map ${name}"], Exec["generate ${name}.db"]], } } Loading Loading
manifests/hash.pp +2 −0 Original line number Diff line number Diff line Loading @@ -28,6 +28,7 @@ define postfix::hash ( Enum['present', 'absent'] $ensure='present', Variant[Array[String], String, Undef] $source=undef, Variant[Array[String], String, Undef] $content=undef, Variant[String[4,4], Undef] $mode='0640', ) { include ::postfix::params Loading @@ -47,6 +48,7 @@ define postfix::hash ( content => $content, type => 'hash', path => $name, mode => $mode, } Class['postfix'] -> Postfix::Hash[$title] Loading
manifests/map.pp +5 −3 Original line number Diff line number Diff line Loading @@ -11,7 +11,8 @@ # [*source*] - file source. # [*type*] - type of the postfix map (valid values are cidr, pcre, hash...) # [*path*] - path of the created file. By default it is placed in the # postfix directory # postfix directory. # [*mode*] - mode of the created file. By default it is '0640'. # # === Requires # Loading @@ -32,6 +33,7 @@ define postfix::map ( Variant[Array[String], String, Undef] $content = undef, String $type = 'hash', Stdlib::Absolutepath $path = "/etc/postfix/${name}", String[4,4] $mode = '0640' ) { include ::postfix::params Loading Loading @@ -61,7 +63,7 @@ define postfix::map ( content => $content, owner => 'root', group => 'postfix', mode => '0644', mode => $mode, require => Package['postfix'], notify => $manage_notify, } Loading @@ -72,7 +74,7 @@ define postfix::map ( path => "${path}.db", owner => 'root', group => 'postfix', mode => '0644', mode => $mode, require => [File["postfix map ${name}"], Exec["generate ${name}.db"]], } } Loading