From 24dac3e185d66299519f80f990436028c3a6cf15 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 17 Feb 2010 19:13:19 -0200 Subject: Enabling proxy configuration no nginx::puppetmaster --- .gitignore | 1 + manifests/init.pp | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 .gitignore 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"], + } } } -- cgit v1.2.3