summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-25 10:59:00 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-25 10:59:00 -0200
commitffeb6f2240bf27bdddd1496e68bbd2de82ceb591 (patch)
treed02794620115041af4e1b6f65e6d2856cd1e25d2
parentfca49ede942b3dac87ad96e5a07b4fd0f299c4b9 (diff)
downloadpuppet-nginx-ffeb6f2240bf27bdddd1496e68bbd2de82ceb591.tar.gz
puppet-nginx-ffeb6f2240bf27bdddd1496e68bbd2de82ceb591.tar.bz2
Fixing variable scopes
-rw-r--r--templates/puppetmaster.erb6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/puppetmaster.erb b/templates/puppetmaster.erb
index 6b3e2a6..8b568d4 100644
--- a/templates/puppetmaster.erb
+++ b/templates/puppetmaster.erb
@@ -4,10 +4,10 @@
# service in Puppet.
server {
- listen <%= ssl_port %>;
+ listen <%= scope.lookupvar('nginx::puppetmaster::ssl_port') %>;
ssl_verify_client on;
root /var/empty;
- access_log /var/log/nginx/access-<%= ssl_port %>.log;
+ access_log /var/log/nginx/access-<%= scope.lookupvar('nginx:puppetmaster::ssl_port') %>.log;
rewrite_log on;
large_client_header_buffers 16 4k;
@@ -38,7 +38,7 @@ server {
}
server {
- listen <%= non_ssl_port %>;
+ listen <%= scope.lookupvar('nginx::puppetmaster::non_ssl_port') %>;
ssl_verify_client off;
root /var/empty;
access_log /var/log/nginx/access-<%= non_ssl_port %>.log;