]> WPIA git - infra.git/blobdiff - environments/production/manifests/nginx.pp
add: motion system from source
[infra.git] / environments / production / manifests / nginx.pp
index 9b9c5613cf509479a3f63be3c4ff2300a6cd243d..db81cc5177f00fec1db11c766e6c856856956e5d 100644 (file)
@@ -1,4 +1,4 @@
-define front_vhost($source, $crt = undefined){
+define front_vhost($source, $crt = undefined, $args = {}){
   if $crt {
     file{"/etc/ssl/private/$name.crt":
       ensure => 'file',
@@ -16,7 +16,7 @@ define front_vhost($source, $crt = undefined){
   }
   file {"/etc/nginx/sites-available/$name.conf":
     ensure => 'file',
-    content => epp($source),
+    content => epp($source, $args),
     require => Package['nginx-light'],
   }->
   file {"/etc/nginx/sites-enabled/$name.conf":