summaryrefslogtreecommitdiff
path: root/chaos-at-home
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2023-11-13 21:56:24 +0100
committerChristian Pointner <equinox@spreadspace.org>2023-11-13 21:56:24 +0100
commita0c1aa799d94c3ce0c697bfd6777e0233dd77d92 (patch)
tree0c2b858fc4526bc64edc1668da4580f8d54d6ef3 /chaos-at-home
parentadd role nginx/auth/whawty-sso (diff)
finalize whawty.nginx-sso roles
Diffstat (limited to 'chaos-at-home')
-rw-r--r--chaos-at-home/ch-testvm-prometheus.yml52
1 files changed, 52 insertions, 0 deletions
diff --git a/chaos-at-home/ch-testvm-prometheus.yml b/chaos-at-home/ch-testvm-prometheus.yml
index 9a1191ad..c142100c 100644
--- a/chaos-at-home/ch-testvm-prometheus.yml
+++ b/chaos-at-home/ch-testvm-prometheus.yml
@@ -7,3 +7,55 @@
- role: core/sshd/base
- role: core/zsh
- role: core/ntp
+
+- name: Payload Setup
+ hosts: ch-testvm-prometheus
+ roles:
+ - role: apt-repo/spreadspace
+ - role: nginx/base
+ - role: nginx/auth/whawty-sso/base
+ - role: nginx/auth/whawty-sso/auth
+ post_tasks:
+ #### test.chaos-at-home.org (default-server)
+ - name: create directory for default server
+ file:
+ path: /var/www/default
+ state: directory
+
+ - name: copy chaos-at-home logo file
+ copy:
+ src: "{{ global_files_dir }}/chaos-at-home/logo.jpg"
+ dest: /var/www/default/logo.jpg
+
+ - name: install index.html for default server
+ copy:
+ dest: /var/www/default/index.html
+ content: |
+ <html>
+ <head>
+ <title>No Such Site</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;">
+ <img src="logo.jpg" alt="chaos@home Logo" />
+ <h2 style="">You have reached the chaos@home test webserver.</h2>
+ </div>
+ </body>
+ </html>
+
+ - name: configure default vhost web.chaos-at-home.org
+ vars:
+ nginx_vhost:
+ default: yes
+ name: test
+ template: generic
+ hostnames:
+ - test.chaos-at-home.org
+ extra_directives: |
+ include snippets/whawty-sso-chaos-at-home.conf;
+ locations:
+ '/':
+ root: /var/www/default
+ index: index.html
+ include_role:
+ name: nginx/vhost