summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-06-17 15:33:58 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-06-17 15:33:58 -0300
commitcd5988acaabd04706b5f151af30e2cc99b8f638e (patch)
tree956bba8f2805a998f83b119197688b7f397d2e6f
parent79658fbaa4f35fe4cdc44e0772a503abeb188dfb (diff)
downloadpuppet-nginx-cd5988acaabd04706b5f151af30e2cc99b8f638e.tar.gz
puppet-nginx-cd5988acaabd04706b5f151af30e2cc99b8f638e.tar.bz2
Adds missing params
-rw-r--r--manifests/site.pp24
1 files changed, 15 insertions, 9 deletions
diff --git a/manifests/site.pp b/manifests/site.pp
index 760b441..7377f18 100644
--- a/manifests/site.pp
+++ b/manifests/site.pp
@@ -1,12 +1,16 @@
define nginx::site(
- $ensure = present,
- $ssl = present,
- $source = 'file',
- $certbot = true
+ $ensure = present,
+ $ssl = present,
+ $source = 'file',
+ $certbot = true
+ $template = 'site',
+ $backend = 'weblocal',
) {
nginx::site::config { $name:
- ensure => $ensure,
- source => $source,
+ ensure => $ensure,
+ source => $source,
+ template => $template,
+ backend => $backend,
}
if $certbot == true {
@@ -17,9 +21,11 @@ define nginx::site(
}
nginx::site::config { "${name}-ssl":
- ensure => $ssl,
- source => $source,
- require => $certbot ? {
+ ensure => $ssl,
+ source => $source,
+ template => "${template}-ssl",
+ backend => $backend,
+ require => $certbot ? {
true => Certbot::Manage[$name],
default => undef,
}