diff options
author | Gabriel Filion <lelutin@gmail.com> | 2011-09-19 15:11:32 -0400 |
---|---|---|
committer | Gabriel Filion <lelutin@gmail.com> | 2011-12-09 10:34:18 -0500 |
commit | 08f6c9b218893ea94b3611d687a56090e7fea5b2 (patch) | |
tree | 8061989c9544091f9dc33a64396d0a4e65eaf9d7 /manifests/config/global.pp | |
parent | a51e1de81e1200751613216ab7a074e82a5dc1c8 (diff) |
config: Implement config files as links
Some packages in Debian manage an Apache config file in their own /etc
directory and create a link to that file in Apache's conf.d directory.
One example package that does this is nagios3.
Introduce a new argument, $target, that can be used to specify the link
destination. When using $target, the value to $ensure must also be
'link' to make the file into a symbolic link. This is to make it
explicit when we want the apache::config::file to behave differently
than the normal behaviour of creating a plain text file in conf.d.
Signed-off-by: Gabriel Filion <lelutin@gmail.com>
Diffstat (limited to 'manifests/config/global.pp')
-rw-r--r-- | manifests/config/global.pp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/manifests/config/global.pp b/manifests/config/global.pp index 5bb075b..8b0389b 100644 --- a/manifests/config/global.pp +++ b/manifests/config/global.pp @@ -2,12 +2,14 @@ # wrapper for apache::config::file define apache::config::global( $ensure = present, + $target = false, $source = 'absent', $content = 'absent', $destination = 'absent' ){ apache::config::file { "${name}": ensure => $ensure, + target => $target, type => 'global', source => $source, content => $content, |