diff options
Diffstat (limited to 'manifests/site/config.pp')
-rw-r--r-- | manifests/site/config.pp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/manifests/site/config.pp b/manifests/site/config.pp index 8bb7304..4bea495 100644 --- a/manifests/site/config.pp +++ b/manifests/site/config.pp @@ -8,7 +8,10 @@ define nginx::site::config( case $source { 'file': { file { "/etc/nginx/sites-available/$name": - source => "puppet:///modules/site_nginx/$name", + source => $ensure ? { + 'present' => "puppet:///modules/site_nginx/$name", + default => undef, + }, owner => "root", group => "root", mode => 0644, |