-define front_vhost($source, $crt = undefined){
+define front_vhost($source, $crt = undefined, $args = {}){
if $crt {
file{"/etc/ssl/private/$name.crt":
ensure => 'file',
}
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":
notify => Service['nginx'],
crt => 'gitweb/web'
}
+
+ Front_vhost <| tag == nginx |> ~> Service['nginx']
+ File <| tag == nginx |> ~> Service['nginx']
}