summaryrefslogtreecommitdiff
path: root/manifests/site/config.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/site/config.pp')
-rw-r--r--manifests/site/config.pp8
1 files changed, 5 insertions, 3 deletions
diff --git a/manifests/site/config.pp b/manifests/site/config.pp
index 991a70b..8e1f71b 100644
--- a/manifests/site/config.pp
+++ b/manifests/site/config.pp
@@ -1,6 +1,8 @@
define nginx::site::config(
- $ensure = present,
- $source = 'file',
+ $ensure = present,
+ $source = 'file',
+ $template = 'site',
+ $backend = 'weblocal',
){
case $source {
'file': {
@@ -16,7 +18,7 @@ define nginx::site::config(
}
'template': {
file { "/etc/nginx/sites-available/$name":
- content => template("nginx/$name.erb"),
+ content => template("nginx/${template}.erb"),
owner => "root",
group => "root",
mode => 0644,