summaryrefslogtreecommitdiffstats
path: root/modules/tozt
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-03-26 22:34:46 -0400
committerJesse Luehrs <doy@tozt.net>2021-03-26 22:34:46 -0400
commitcef5a0ed716509085d113999fbc419998330e3d2 (patch)
tree4215c36a8376480a7ef962816500262c162eb3bb /modules/tozt
parent2a49dab1adc1fa2b744041272e8a6b8fd07440cf (diff)
downloadpuppet-tozt-cef5a0ed716509085d113999fbc419998330e3d2.tar.gz
puppet-tozt-cef5a0ed716509085d113999fbc419998330e3d2.zip
more things to remove
Diffstat (limited to 'modules/tozt')
-rw-r--r--modules/tozt/files/acts.conf4
-rw-r--r--modules/tozt/files/kapacitor/duplicati.tick28
-rw-r--r--modules/tozt/files/kapacitor/tarsnap.tick28
-rw-r--r--modules/tozt/files/munin-plugin-conf15
-rw-r--r--modules/tozt/manifests/monitoring.pp1
-rw-r--r--modules/tozt/templates/duplicati-tozt.json81
6 files changed, 0 insertions, 157 deletions
diff --git a/modules/tozt/files/acts.conf b/modules/tozt/files/acts.conf
deleted file mode 100644
index ddc9f15..0000000
--- a/modules/tozt/files/acts.conf
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-
-backuptargets="home/doy/pass home/doy/paste home/doy/public_html"
-tarsnapbackupoptions="-H"
diff --git a/modules/tozt/files/kapacitor/duplicati.tick b/modules/tozt/files/kapacitor/duplicati.tick
deleted file mode 100644
index 5ef1c6b..0000000
--- a/modules/tozt/files/kapacitor/duplicati.tick
+++ /dev/null
@@ -1,28 +0,0 @@
-dbrp "telegraf"."autogen"
-
-var message = '''
-{{- if eq .Level "OK" -}}
-backup target {{ index .Tags "name" }} is back to running
-{{- else -}}
-backup target {{ index .Tags "name" }} hasn't run for a while
-{{- end -}}
-'''
-
-var details = '''
-{{- if eq .Level "OK" -}}
-backup target {{ index .Tags "name" }} is now {{ index .Fields "days_since_last_run" }} days since its last run
-{{- else -}}
-backup target {{ index .Tags "name" }} hasn't run for {{ index .Fields "days_since_last_run" }} days
-{{- end -}}
-'''
-
-stream
-|from()
- .measurement('duplicati')
- .groupBy('name')
-|min('days_since_last_run')
- .as('days_since_last_run')
-|alert()
- .crit(lambda: "days_since_last_run" > 2)
- .message(message)
- .details(details)
diff --git a/modules/tozt/files/kapacitor/tarsnap.tick b/modules/tozt/files/kapacitor/tarsnap.tick
deleted file mode 100644
index 1239c69..0000000
--- a/modules/tozt/files/kapacitor/tarsnap.tick
+++ /dev/null
@@ -1,28 +0,0 @@
-dbrp "telegraf"."autogen"
-
-var message = '''
-{{- if eq .Level "OK" -}}
-backup target {{ index .Tags "name" }} is back to running
-{{- else -}}
-backup target {{ index .Tags "name" }} hasn't run for a while
-{{- end -}}
-'''
-
-var details = '''
-{{- if eq .Level "OK" -}}
-backup target {{ index .Tags "name" }} is now {{ index .Fields "days_since_last_run" }} days since its last run
-{{- else -}}
-backup target {{ index .Tags "name" }} hasn't run for {{ index .Fields "days_since_last_run" }} days
-{{- end -}}
-'''
-
-stream
-|from()
- .measurement('tarsnap')
- .groupBy('name')
-|min('days_since_last_run')
- .as('days_since_last_run')
-|alert()
- .crit(lambda: "days_since_last_run" > 2)
- .message(message)
- .details(details)
diff --git a/modules/tozt/files/munin-plugin-conf b/modules/tozt/files/munin-plugin-conf
deleted file mode 100644
index acc7bdc..0000000
--- a/modules/tozt/files/munin-plugin-conf
+++ /dev/null
@@ -1,15 +0,0 @@
-[fail2ban]
-user root
-
-[tarsnap]
-user root
-
-[tarsnap_last_run]
-user root
-
-[package_updates]
-user root
-
-[certbot]
-user root
-env.CERTBOT_CONFIG_DIR /media/persistent/certbot
diff --git a/modules/tozt/manifests/monitoring.pp b/modules/tozt/manifests/monitoring.pp
index 2007ab2..cafa705 100644
--- a/modules/tozt/manifests/monitoring.pp
+++ b/modules/tozt/manifests/monitoring.pp
@@ -11,7 +11,6 @@ class tozt::monitoring {
[
"tick::client::plugin::certbot",
"tick::client::plugin::fail2ban",
- "tick::client::plugin::tarsnap",
]:
}
}
diff --git a/modules/tozt/templates/duplicati-tozt.json b/modules/tozt/templates/duplicati-tozt.json
deleted file mode 100644
index e6ce95b..0000000
--- a/modules/tozt/templates/duplicati-tozt.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "CreatedByVersion": "2.0.4.4",
- "Schedule": {
- "ID": 1,
- "Tags": [
- "ID=1"
- ],
- "Time": "2018-11-19T18:00:00Z",
- "Repeat": "1D",
- "LastRun": "0001-01-01T00:00:00Z",
- "Rule": "AllowedWeekDays=Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday",
- "AllowedDays": [
- "mon",
- "tue",
- "wed",
- "thu",
- "fri",
- "sat",
- "sun"
- ]
- },
- "Backup": {
- "ID": "1",
- "Name": "tozt",
- "Description": "",
- "Tags": [],
- "TargetURL": "<%= @url %>",
- "DBPath": "/media/persistent/duplicati/tozt.sqlite",
- "Sources": [
- "/media/persistent/",
- "/home/",
- "/etc/"
- ],
- "Settings": [
- {
- "Filter": "",
- "Name": "encryption-module",
- "Value": "aes",
- "Argument": null
- },
- {
- "Filter": "",
- "Name": "compression-module",
- "Value": "zip",
- "Argument": null
- },
- {
- "Filter": "",
- "Name": "dblock-size",
- "Value": "50mb",
- "Argument": null
- },
- {
- "Filter": "",
- "Name": "passphrase",
- "Value": "<%= @encrypt_passphrase %>",
- "Argument": null
- },
- {
- "Filter": "",
- "Name": "retention-policy",
- "Value": "1W:1D,4W:1W,12M:1M",
- "Argument": null
- }
- ],
- "Filters": [
- {
- "Order": 0,
- "Include": false,
- "Expression": "/media/persistent/duplicati/"
- }
- ],
- "Metadata": {},
- "IsTemporary": false
- },
- "DisplayNames": {
- "/media/persistent/": "persistent",
- "/home/": "home",
- "/etc/": "etc"
- }
-}