diff --git a/manifests/fcgi/site.pp b/manifests/fcgi/site.pp index 02f05e6..3a23ef4 100644 --- a/manifests/fcgi/site.pp +++ b/manifests/fcgi/site.pp @@ -37,6 +37,8 @@ $root, $fastcgi_pass, $ensure = 'present', + $content = undef, + $template = undef, $index = 'index.php', $include = '', $listen = '80', @@ -78,9 +80,19 @@ default => $ssl_certificate_key, } + $site_template = $template ? { + undef => 'nginx/fcgi_site.erb', + default => $template, + } + + $site_content = $content ? { + undef => template($site_template), + default => $content, + } + nginx::site { $name: ensure => $ensure, - content => template('nginx/fcgi_site.erb'), + content => $site_content, } }