-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":
include container::contained;
include container::no_ssh;
apt_key{ 'E643C483A426BB5311D26520A631B6AF9FD3DF94':
- source => 'http://deb.dogcraft.de/signer.gpg',
+ source => 'http://deb2.dogcraft.de/signer.gpg',
ensure => 'present'
} ->
file { '/etc/apt/sources.list.d/dogcraft.list':
notify => Service['nginx'],
crt => 'gitweb/web'
}
+
+ Front_vhost <| tag == nginx |> ~> Service['nginx']
+ File <| tag == nginx |> ~> Service['nginx']
}