From f70d8ee3c803caf4db66cd79af2df9039c86d59e Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 20 Jun 2016 11:41:49 -0300 Subject: Checks ensurable state for nginx::site::config file source --- manifests/site/config.pp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'manifests/site/config.pp') 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, -- cgit v1.2.3