From 1057960b6c76cb319e9a6eba547bb76361b8cc7e Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 26 Mar 2023 13:38:51 -0400 Subject: let's try actually using hiera --- hiera/data/common.yaml | 11 ++++++++++- hiera/data/node/mail.yaml | 4 +++- hiera/data/node/partofme.yaml | 7 ++++++- hiera/data/node/tozt.yaml | 5 ++++- 4 files changed, 23 insertions(+), 4 deletions(-) (limited to 'hiera') diff --git a/hiera/data/common.yaml b/hiera/data/common.yaml index d9e1a25..fe19671 100644 --- a/hiera/data/common.yaml +++ b/hiera/data/common.yaml @@ -1,2 +1,11 @@ --- -{} +default_user: doy +vpn_ips: + hornet: '10.49.0.2' + mail: '10.49.0.3' + partofme: '10.49.0.4' + phone: '10.49.0.5' + tozt: '10.49.0.6' + +# when updating this value, also rm /opt/metabase/metabase.jar +metabase::version: 'v0.45.3' \ No newline at end of file diff --git a/hiera/data/node/mail.yaml b/hiera/data/node/mail.yaml index d9e1a25..9267209 100644 --- a/hiera/data/node/mail.yaml +++ b/hiera/data/node/mail.yaml @@ -1,2 +1,4 @@ --- -{} +persistent_data: '/media/persistent' +base::extra_script: | + (cd /media/persistent && sudo docker-compose pull -q) \ No newline at end of file diff --git a/hiera/data/node/partofme.yaml b/hiera/data/node/partofme.yaml index d9e1a25..fed4580 100644 --- a/hiera/data/node/partofme.yaml +++ b/hiera/data/node/partofme.yaml @@ -1,2 +1,7 @@ --- -{} +# we don't want to store anything system-related on the persistent disk, +# since we want it to be encrypted, and we can't really access it at boot +# time to type in a password +# persistent_data: +base::extra_script: | + (sudo podman pull docker.io/pihole/pihole) diff --git a/hiera/data/node/tozt.yaml b/hiera/data/node/tozt.yaml index d9e1a25..c03fa5b 100644 --- a/hiera/data/node/tozt.yaml +++ b/hiera/data/node/tozt.yaml @@ -1,2 +1,5 @@ --- -{} +persistent_data: '/media/persistent' +base::extra_script: | + (cd /home/doy/coding/metabase-utils && git pull) + (sudo podman pull docker.io/vaultwarden/server) -- cgit v1.2.3-54-g00ecf