summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-02-17 19:13:19 -0200
committerSilvio Rhatto <rhatto@riseup.net>2010-02-17 19:13:19 -0200
commit24dac3e185d66299519f80f990436028c3a6cf15 (patch)
treeb13207a0d72a85e7d6525eb629972127929cb299
parent8839736b5c8bf43776c4f9d57792440cc8fc0086 (diff)
downloadpuppet-nginx-24dac3e185d66299519f80f990436028c3a6cf15.tar.gz
puppet-nginx-24dac3e185d66299519f80f990436028c3a6cf15.tar.bz2
Enabling proxy configuration no nginx::puppetmaster
-rw-r--r--.gitignore1
-rw-r--r--manifests/init.pp6
2 files changed, 7 insertions, 0 deletions
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"],
+ }
}
}