summaryrefslogtreecommitdiff
path: root/chaos-at-home
diff options
context:
space:
mode:
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