diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-12-30 14:01:39 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-12-30 14:01:39 -0200 |
commit | 3933b4048a4437987930bb370dd99b7e189f67ae (patch) | |
tree | 422c921949186de5fdcbe23e613188774b3c0796 /manifests/virtual_regexp_snippet.pp | |
parent | ae05fced176bfdb5a23784614594306ef45ae9ee (diff) | |
parent | 3e7dd131f38bf19d9ed8f38ba276a3d9bf4b1508 (diff) | |
download | puppet-postfix-3933b4048a4437987930bb370dd99b7e189f67ae.tar.gz puppet-postfix-3933b4048a4437987930bb370dd99b7e189f67ae.tar.bz2 |
Merge branch 'develop' into production
Diffstat (limited to 'manifests/virtual_regexp_snippet.pp')
-rw-r--r-- | manifests/virtual_regexp_snippet.pp | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/manifests/virtual_regexp_snippet.pp b/manifests/virtual_regexp_snippet.pp index 6252fd2..8e376b7 100644 --- a/manifests/virtual_regexp_snippet.pp +++ b/manifests/virtual_regexp_snippet.pp @@ -44,17 +44,13 @@ define postfix::virtual_regexp_snippet ( concat::fragment { "$fragment": ensure => "$ensure", target => '/etc/postfix/virtual_regexp', + source => $source ? { + undef => undef, + default => $source, + }, + content => $content ? { + undef => undef, + default => $content, + }, } - - if $source { - Concat::Fragment["$fragment"] { - source => $source, - } - } - else { - Concat::Fragment["$fragment"] { - content => $content, - } - } - } |