diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-02-17 19:13:19 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-02-17 19:13:19 -0200 |
commit | 24dac3e185d66299519f80f990436028c3a6cf15 (patch) | |
tree | b13207a0d72a85e7d6525eb629972127929cb299 | |
parent | 8839736b5c8bf43776c4f9d57792440cc8fc0086 (diff) | |
download | puppet-nginx-24dac3e185d66299519f80f990436028c3a6cf15.tar.gz puppet-nginx-24dac3e185d66299519f80f990436028c3a6cf15.tar.bz2 |
Enabling proxy configuration no nginx::puppetmaster
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | manifests/init.pp | 6 |
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"], + } } } |