summaryrefslogtreecommitdiff
path: root/dan
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2023-08-22 14:57:24 +0200
committerChristian Pointner <equinox@spreadspace.org>2023-08-22 14:57:24 +0200
commit50b8e5b2f6de5328166fe6fa816e1a1fedee3943 (patch)
tree0bb9b0489ddf57d6c66fa1596a8202cc476f9bf4 /dan
parentx509/uacme: add support for special renewal actions (diff)
uacme: some more tests
Diffstat (limited to 'dan')
-rw-r--r--dan/sk-testvm.yml104
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>