diff options
Diffstat (limited to 'dan/sk-testvm.yml')
-rw-r--r-- | dan/sk-testvm.yml | 104 |
1 files changed, 48 insertions, 56 deletions
diff --git a/dan/sk-testvm.yml b/dan/sk-testvm.yml index 70b6f336..1d047447 100644 --- a/dan/sk-testvm.yml +++ b/dan/sk-testvm.yml @@ -22,6 +22,40 @@ - role: kubernetes/standalone/base - role: "x509/{{ cert_provider }}/base" - role: nginx/base + - role: nginx/vhost + nginx_vhost: + default: yes + name: nosuchsite + template: generic + tls: + certificate_provider: "{{ cert_provider }}" + hsts: no + hostnames: + - testvm.elev8.at + locations: + '/': + root: /var/www/default + index: index.html + static_cert_config: "{{ static_cert_config__default }}" + selfsigned_cert_config: "{{ selfsigned_cert_config__default }}" + # - role: nginx/vhost + # nginx_vhost: + # name: test + # template: generic + # tls: + # certificate_provider: "{{ cert_provider }}" + # hsts: no + # hostnames: + # - test.spreadspace.org + # - test.spreadspace.com + # - test.spreadspace.net + # - test.spreadspace.systems + # locations: + # '/': + # root: /var/www/test + # index: index.html + # static_cert_config: "{{ static_cert_config__test }}" + # selfsigned_cert_config: "{{ selfsigned_cert_config__test }}" - role: apps/mumble mumble_version: v1.4.274-4 mumble_instance: spreadspace @@ -62,60 +96,18 @@ </body> </html> - - name: install default vhost - vars: - nginx_vhost: - default: yes - name: nosuchsite - template: generic - tls: - certificate_provider: "{{ cert_provider }}" - hsts: no - hostnames: - - testvm.elev8.at - locations: - '/': - root: /var/www/default - index: index.html - static_cert_config: "{{ static_cert_config__default }}" - selfsigned_cert_config: "{{ selfsigned_cert_config__default }}" - include_role: - name: nginx/vhost - - # - name: install index.html for test server - # copy: - # dest: /var/www/test/index.html - # content: | - # <html> - # <head> - # <title>This is Test</title> - # </head> - # <body style="font-family: Helvetica, Arial, Sans-Serif; color: white; background: black;"> - # <div style="text-align: center; margin-top: 4em; margin-left:auto; margin-right:auto;"> - # <h2 style="">If you can read this the test was successful.</h2> - # </div> - # </body> - # </html> - - # - name: install test vhost - # vars: - # nginx_vhost: - # name: test - # template: generic - # tls: - # certificate_provider: "{{ cert_provider }}" - # hsts: no - # hostnames: - # - test.spreadspace.org - # - test.spreadspace.com - # - test.spreadspace.net - # - test.spreadspace.systems - # locations: - # '/': - # root: /var/www/test - # index: index.html - # static_cert_config: "{{ static_cert_config__test }}" - # selfsigned_cert_config: "{{ selfsigned_cert_config__test }}" - # include_role: - # name: nginx/vhost + - name: install index.html for test server + copy: + dest: /var/www/test/index.html + content: | + <html> + <head> + <title>This is Test</title> + </head> + <body style="font-family: Helvetica, Arial, Sans-Serif; color: white; background: black;"> + <div style="text-align: center; margin-top: 4em; margin-left:auto; margin-right:auto;"> + <h2 style="">If you can read this the test was successful.</h2> + </div> + </body> + </html> |