node front-nginx {
include container::contained;
include container::no_ssh;
+ apt_key{ 'E643C483A426BB5311D26520A631B6AF9FD3DF94':
+ source => 'http://deb.dogcraft.de/signer.gpg',
+ ensure => 'present'
+ } ->
+ file { '/etc/apt/sources.list.d/dogcraft.list':
+ source => 'puppet:///modules/lxc/dogcraft.list',
+ ensure => 'present',
+ notify => Exec['apt_update']
+ }
package{ 'nginx-light':
ensure => 'installed'
}
source => 'crl/nginx',
notify => Service['nginx']
}
+ package{'wpia-infradocs':
+ ensure => 'installed'
+ } ->
+ front_vhost{'infradocs':
+ source => 'infradocs/nginx',
+ notify => Service['nginx']
+ }
if($protected != 'no') {
file{'/etc/nginx/access.txt':
content => $protected,
--- /dev/null
+server {
+ listen 0.0.0.0:443 ssl;
+ server_name infradocs.<%=$systemDomain%>;
+# ssl_certificate /etc/ssl/private/gigi.crt;
+# ssl_certificate_key /etc/ssl/private/gigi.key;
+
+# ssl_client_certificate /etc/ssl/root.crt;
+# ssl_verify_client on;
+# ssl_verify_depth 4;
+
+ location / {
+ root '/usr/share/doc/wpia-infradocs/html';
+ index main.html;
+ }
+}
+server {
+ listen 0.0.0.0:80;
+ server_name infradocs.<%=$systemDomain%>;
+
+ location / {
+ root '/usr/share/doc/wpia-infradocs/html';
+ index main.html;
+ }
+
+ location ~* /.well-known/someca-challenge/.* {
+ root /data/challenge;
+ }
+}