blob: c528d71a090049a2e0c62959dd7a92ec753e76d6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
|
---
install:
efi: true
disks:
primary: /dev/disk/by-id/ata-ADATA_SP300_1302938101000079
network:
nameservers: "{{ network_zones.lan.dns }}"
domain: "{{ host_domain }}"
primary: &_network_primary_
name: enp1s0
address: "{{ network_zones.lan.prefix | ansible.utils.ipaddr(network_zones.lan.offsets[inventory_hostname]) }}"
gateway: "{{ network_zones.lan.gateway }}"
interfaces:
- *_network_primary_
wakeonlan_interfaces:
- enp7s0 ## onboard GBit/s port - enp1s0 is a 10g SFP+ card without support for WOL
apt_repo_components:
- main
- contrib ## for zfs
- non-free ## for microcode updates
spreadspace_apt_repo_components:
- prometheus
prometheus_exporter_node_textfile_collector_scripts:
- deleted-libraries
- smartmon
prometheus_exporters_extra:
- ssl
prometheus_job_multitarget_blackbox__probe:
ch-mon:
- instance: "ssh-{{ inventory_hostname }}"
target: "{{ network_zones.lan.prefix | ansible.utils.ipaddr(network_zones.lan.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}:{{ ansible_port | default(22) }}"
module: ssh_banner
prometheus_job_multitarget_ssl__probe:
ch-epimetheus:
- instance: "sslcert-prometheus-{{ inventory_hostname }}"
target: "/etc/ssl/prometheus/**/*.pem"
module: file
luks_volumes:
crypto-sata0:
passphrase: "{{ vault_luks_volumes['crypto-sata0'].passphrase }}"
device: /dev/disk/by-id/ata-ST4000VN008-2DR166_ZGY976JP
crypto-sata1:
passphrase: "{{ vault_luks_volumes['crypto-sata1'].passphrase }}"
device: /dev/disk/by-id/ata-ST4000VN008-2DR166_ZDHAVYJT
crypto-sata2:
passphrase: "{{ vault_luks_volumes['crypto-sata2'].passphrase }}"
device: /dev/disk/by-id/ata-ST4000VN008-2DR166_ZGY9802C
crypto-sata3:
passphrase: "{{ vault_luks_volumes['crypto-sata3'].passphrase }}"
device: /dev/disk/by-id/ata-ST4000VN008-2DR166_ZDHADPQL
zfs_arc_size:
min: 10GB
max: 18GB
zfs_pools:
backup:
mountpoint: /srv/backup
create_vdevs: raidz /dev/mapper/crypto-sata0 /dev/mapper/crypto-sata1 /dev/mapper/crypto-sata2 /dev/mapper/crypto-sata3
zfs_sanoid_templates:
backup:
frequently: 0
hourly: 48
daily: 90
monthly: 6
yearly: 0
autosnap: no
autoprune: yes
ignore:
autoprune: no
autosnap: no
monitor: no
zfs_sanoid_modules:
backup:
use_template: backup
recursive: yes
process_children_only: yes
# zfs_syncoid_autosuspend: yes
zfs_syncoid_target_pool: backup
zfs_syncoid_sources:
'ch-prometheus':
ssh_hostname: "{{ network_zones.lan.prefix | ansible.utils.ipaddr(network_zones.lan.offsets['ch-prometheus']) | ansible.utils.ipaddr('address') }}"
ssh_port: "{{ hostvars['ch-prometheus'].ansible_port }}"
report_prometheus_textfile_path: "/var/lib/prometheus-node-exporter/textfile-collector"
periodic:
schedule: "*-*-* 00,06,12,18:31:00"
timeout: 5h
paths:
nvme/vm:
recursive: yes
skip_parent: yes
storage/vm:
recursive: yes
skip_parent: yes
storage:
recursive: yes
skip_parent: yes
exclude:
- '^storage/vm'
'ch-phoebe':
ssh_hostname: "{{ network_zones.lan.prefix | ansible.utils.ipaddr(network_zones.lan.offsets['ch-phoebe']) | ansible.utils.ipaddr('address') }}"
ssh_port: "{{ hostvars['ch-phoebe'].ansible_port }}"
report_prometheus_textfile_path: "/var/lib/prometheus-node-exporter/textfile-collector"
periodic:
schedule: "*-*-* 00,06,12,18:23:00"
timeout: 5h
paths:
nvme/vm:
recursive: yes
skip_parent: yes
'ch-apps':
ssh_hostname: "{{ network_zones.svc.prefix | ansible.utils.ipaddr(network_zones.svc.offsets['ch-apps']) | ansible.utils.ipaddr('address') }}"
ssh_port: "{{ hostvars['ch-apps'].ansible_port }}"
report_prometheus_textfile_path: "/var/lib/prometheus-node-exporter/textfile-collector"
periodic:
schedule: "*-*-* 00,06,12,18:15:00"
timeout: 5h
paths:
storage:
recursive: yes
skip_parent: yes
'ch-equinox-t450s':
ssh_hostname: 192.168.28.139
ssh_port: 222
paths:
storage:
recursive: yes
skip_parent: yes
|