From: Silvio Rhatto Date: Wed, 17 Feb 2010 21:13:19 +0000 (-0200) Subject: Enabling proxy configuration no nginx::puppetmaster X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=24dac3e185d66299519f80f990436028c3a6cf15;p=puppet-nginx.git Enabling proxy configuration no nginx::puppetmaster --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1377554 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.swp diff --git a/manifests/init.pp b/manifests/init.pp index 68b578b..11c1166 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -125,5 +125,11 @@ class nginx::puppetmaster inherits nginx::base { require => File["/etc/nginx/sites-available"], } + # Symlink to enable proxy configuration + file { "/etc/nginx/sites-enabled/$name": + ensure => "/etc/nginx/sites-available/$name", + require => File["/etc/nginx/sites-enabled"], + notify => Service["nginx"], + } } }