Commit 7407878b authored by treydock's avatar treydock Committed by Raphaël Pinson
Browse files

Add show_diff parameter to postfix::conffile (#226)

parent e6c279d7
...@@ -26,6 +26,9 @@ ...@@ -26,6 +26,9 @@
# [*options*] # [*options*]
# Hash with options to use in the template # Hash with options to use in the template
# #
# [*show_diff*]
# Boolean that sets File show_diff parameter
#
# == Usage: # == Usage:
# postfix::conffile { 'ldapoptions.cf': # postfix::conffile { 'ldapoptions.cf':
# options => { # options => {
...@@ -44,12 +47,13 @@ ...@@ -44,12 +47,13 @@
# } # }
# #
define postfix::conffile ( define postfix::conffile (
Enum['present', 'absent', 'directory'] $ensure = 'present', Enum['present', 'absent', 'directory'] $ensure = 'present',
Variant[Array[String], String, Undef] $source = undef, Variant[Array[String], String, Undef] $source = undef,
Optional[String] $content = undef, Optional[String] $content = undef,
Stdlib::Absolutepath $path = "/etc/postfix/${name}", Stdlib::Absolutepath $path = "/etc/postfix/${name}",
String $mode = '0640', String $mode = '0640',
Hash $options = {}, Hash $options = {},
Boolean $show_diff = true,
) { ) {
include ::postfix::params include ::postfix::params
...@@ -79,16 +83,17 @@ define postfix::conffile ( ...@@ -79,16 +83,17 @@ define postfix::conffile (
} }
file { "postfix conffile ${name}": file { "postfix conffile ${name}":
ensure => $ensure, ensure => $ensure,
path => $path, path => $path,
mode => $mode, mode => $mode,
owner => 'root', owner => 'root',
group => 'postfix', group => 'postfix',
seltype => $postfix::params::seltype, seltype => $postfix::params::seltype,
require => Package['postfix'], require => Package['postfix'],
source => $source, source => $source,
content => $manage_content, content => $manage_content,
notify => Service['postfix'], show_diff => $show_diff,
notify => Service['postfix'],
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment