From c1737f93d1e1b2571c76ee69c48994bafbd12849 Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Tue, 11 Sep 2012 19:45:40 +0100 Subject: [PATCH] I want this to end in .conf Signed-off-by: Stephen Gran --- modules/ferm/manifests/conf.pp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/ferm/manifests/conf.pp b/modules/ferm/manifests/conf.pp index d4e4ad9fd..a97d4a930 100644 --- a/modules/ferm/manifests/conf.pp +++ b/modules/ferm/manifests/conf.pp @@ -9,13 +9,15 @@ define ferm::conf ($content=undef, $source=undef, $ensure=present) { fail ( "Can't define both source and content for ${name}" ) } + $fname = "/etc/ferm/conf.d/${name}.conf" + if $source { - file { "/etc/ferm/conf.d/${name}": + file { $fname: ensure => $ensure, source => $source } } elsif $content { - file { "/etc/ferm/conf.d/${name}": + file { $fname: ensure => $ensure, content => $content, } -- 2.20.1