From: Silvio Rhatto Date: Thu, 31 Dec 2009 21:37:12 +0000 (-0200) Subject: Correctly creating nginx config folders X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=67c4bd3abb07ac6536ff08d8d34bc0e03401fe11;p=puppet-nginx.git Correctly creating nginx config folders --- diff --git a/manifests/init.pp b/manifests/init.pp index 1704390..efd6760 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -29,15 +29,9 @@ class nginx { notify => Service["nginx"], } - # config folder - file { "/etc/nginx/sites-available": - ensure => directory, - owner => "root", - group => "root", - } - - # config folder - file { "/etc/nginx/sites-enabled": + # config folders + # see http://projects.reductivelabs.com/issues/86 + file { [ "/etc/nginx", "/etc/nginx/sites-available", "/etc/nginx/sites-enabled" ]: ensure => directory, owner => "root", group => "root",