summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-12-05 15:03:58 +0100
committerChristian Pointner <equinox@spreadspace.org>2022-12-05 15:04:04 +0100
commit0c6a920ab7436892cb7fb9908ee0fa07da1f708d (patch)
treed99104fdd5d38aadd098e748aea5b5bf67a40c05
parentadd ch-atlas and sk-2019vm to backup list for ch-epimetheus (diff)
ch-mimas: create simple http publish host pub.chaos-at-home.org
-rw-r--r--chaos-at-home/ch-mimas.yml26
-rw-r--r--files/chaos-at-home/bind-zones/db.chaos-at-home.org3
-rw-r--r--inventory/host_vars/sk-testvm.yml2
-rw-r--r--roles/cloud/install/tasks/edis-kvm.yml6
4 files changed, 34 insertions, 3 deletions
diff --git a/chaos-at-home/ch-mimas.yml b/chaos-at-home/ch-mimas.yml
index 8aee418f..f5219bc3 100644
--- a/chaos-at-home/ch-mimas.yml
+++ b/chaos-at-home/ch-mimas.yml
@@ -27,3 +27,29 @@
- role: nginx/base
- role: monitoring/prometheus/exporter
- role: gitolite/base
+ tasks:
+ - name: create zfs volume for pub.chaos-at-home.org
+ vars:
+ zfs_volume:
+ pool: storage
+ name: pub
+ properties:
+ quota: 1G
+ 'syncoid:sync': 'false'
+ include_role:
+ name: storage/zfs/volume
+
+ - name: configure nginx vhost for pub.chaos-at-home.org
+ vars:
+ nginx_vhost:
+ name: pub
+ template: generic
+ acme: yes
+ hostnames:
+ - pub.chaos-at-home.org
+ locations:
+ '/':
+ root: /srv/storage/pub
+ autoindex: {}
+ include_role:
+ name: nginx/vhost
diff --git a/files/chaos-at-home/bind-zones/db.chaos-at-home.org b/files/chaos-at-home/bind-zones/db.chaos-at-home.org
index ab1cbccd..a6df83ed 100644
--- a/files/chaos-at-home/bind-zones/db.chaos-at-home.org
+++ b/files/chaos-at-home/bind-zones/db.chaos-at-home.org
@@ -2,7 +2,7 @@ $origin chaos-at-home.org.
$TTL 1h
@ SOA ns0 hostmaster (
- 2022111101
+ 2022120500
1h
15m
30d
@@ -26,6 +26,7 @@ mimas2 600 A 116.203.212.131
mimas2 600 AAAA 2a01:4f8:c2c:906c::2
ns1 600 A 116.203.212.131
ns1 600 AAAA 2a01:4f8:c2c:906c::2
+pub 600 CNAME mimas2
deb CNAME pan
sigurd CNAME pan
diff --git a/inventory/host_vars/sk-testvm.yml b/inventory/host_vars/sk-testvm.yml
index d7b948da..98f45441 100644
--- a/inventory/host_vars/sk-testvm.yml
+++ b/inventory/host_vars/sk-testvm.yml
@@ -11,6 +11,8 @@ install:
type: zfs
name: root
size: 10g
+ properties:
+ 'syncoid:sync': 'false'
interfaces:
- bridge: br-public
name: primary0
diff --git a/roles/cloud/install/tasks/edis-kvm.yml b/roles/cloud/install/tasks/edis-kvm.yml
index d53c6631..2b29cb01 100644
--- a/roles/cloud/install/tasks/edis-kvm.yml
+++ b/roles/cloud/install/tasks/edis-kvm.yml
@@ -1,6 +1,10 @@
---
# https://documenter.getpostman.com/view/14802249/TzkyNLMQ#intro
+## TODO: actually implement this
+## - generate installer ISO
+## - upload iso to public reachable server... (which one ???)
+
- name: generate auth sessions from API
delegate_to: localhost
check_mode: no
@@ -26,8 +30,6 @@
var: edis_kvm_auth_session
## TODO: actually implement this
-## - generate installer ISO
-## - upload iso to public reachable server... (which one ???)
## - @API: download custom iso
## - @API: power off
## - @API: mount custom iso