summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chaos-at-home/ch-testvm-prometheus.yml1
-rw-r--r--inventory/host_vars/ch-testvm-prometheus.yml15
-rw-r--r--roles/storage/zfs/base/defaults/main.yml2
3 files changed, 10 insertions, 8 deletions
diff --git a/chaos-at-home/ch-testvm-prometheus.yml b/chaos-at-home/ch-testvm-prometheus.yml
index eb8b41b8..d7fa23c2 100644
--- a/chaos-at-home/ch-testvm-prometheus.yml
+++ b/chaos-at-home/ch-testvm-prometheus.yml
@@ -11,6 +11,7 @@
- name: Basic Setup
hosts: ch-testvm-prometheus
roles:
+ - role: storage/lvm/base
- role: storage/zfs/base
- role: nginx/base
- role: x509/static-ca/base
diff --git a/inventory/host_vars/ch-testvm-prometheus.yml b/inventory/host_vars/ch-testvm-prometheus.yml
index c88b8481..dbd6c41a 100644
--- a/inventory/host_vars/ch-testvm-prometheus.yml
+++ b/inventory/host_vars/ch-testvm-prometheus.yml
@@ -15,12 +15,6 @@ install:
size: 10g
properties:
'syncoid:sync': 'false'
- sdb:
- type: zfs
- name: data
- size: 10g
- properties:
- 'syncoid:sync': 'false'
interfaces:
- bridge: br-svc
name: svc0
@@ -51,10 +45,17 @@ apt_repo_components:
- main
- contrib ## for zfs
+
+lvm_devices:
+ system/storage:
+ vg: "{{ host_name }}"
+ lv: storage
+ size: 5G
+
zfs_pools:
storage:
mountpoint: /srv/storage
- create_vdevs: /dev/sdb
+ create_vdevs: "/dev/{{ host_name }}/storage"
zfs_volumes:
storage:
diff --git a/roles/storage/zfs/base/defaults/main.yml b/roles/storage/zfs/base/defaults/main.yml
index 96fb3b73..80e4803d 100644
--- a/roles/storage/zfs/base/defaults/main.yml
+++ b/roles/storage/zfs/base/defaults/main.yml
@@ -49,7 +49,7 @@ zfs_volumes: {}
# properties:
# quota: 512M
-zfs_devices: {}
+zfs_devices: []
# zfs_devices:
# - pool: storage