summaryrefslogtreecommitdiffstats
path: root/modules/tick
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-03-01 03:32:45 -0500
committerJesse Luehrs <doy@tozt.net>2021-03-01 03:32:54 -0500
commit22b7d33290b1bc594c532e72d347e32eb92a981f (patch)
tree4d6c9a7eea811d4a272e490e38aa6e8c48c1b5f6 /modules/tick
parentceb84e7bf31e494e2fd5767f939c5de3b946955a (diff)
downloadpuppet-tozt-22b7d33290b1bc594c532e72d347e32eb92a981f.tar.gz
puppet-tozt-22b7d33290b1bc594c532e72d347e32eb92a981f.zip
also remove kapacitor
Diffstat (limited to 'modules/tick')
-rw-r--r--modules/tick/manifests/server.pp1
-rw-r--r--modules/tick/manifests/server/kapacitor.pp35
-rw-r--r--modules/tick/manifests/server/kapacitor/alert.pp7
-rw-r--r--modules/tick/templates/kapacitor.conf29
4 files changed, 0 insertions, 72 deletions
diff --git a/modules/tick/manifests/server.pp b/modules/tick/manifests/server.pp
index e9a52ba..c129b6a 100644
--- a/modules/tick/manifests/server.pp
+++ b/modules/tick/manifests/server.pp
@@ -1,4 +1,3 @@
class tick::server {
contain tick::server::influxdb
- contain tick::server::kapacitor
}
diff --git a/modules/tick/manifests/server/kapacitor.pp b/modules/tick/manifests/server/kapacitor.pp
deleted file mode 100644
index 11b384c..0000000
--- a/modules/tick/manifests/server/kapacitor.pp
+++ /dev/null
@@ -1,35 +0,0 @@
-class tick::server::kapacitor {
- package::makepkg { 'kapacitor-bin':
- ensure => installed;
- }
-
- $smtp_password = secret::value('kapacitor_smtp_password')
- $smtp_to = secret::value('kapacitor_to')
-
- file {
- "/etc/kapacitor/kapacitor.conf":
- content => template('tick/kapacitor.conf'),
- require => Package::Makepkg['kapacitor-bin'],
- notify => Service['kapacitor'];
- "/etc/kapacitor/load":
- ensure => directory,
- require => Package::Makepkg['kapacitor-bin'];
- "/etc/kapacitor/load/tasks":
- ensure => directory,
- recurse => true,
- purge => true,
- require => File["/etc/kapacitor/load"],
- notify => Service['kapacitor'];
- "/media/persistent/kapacitor":
- ensure => directory,
- owner => "kapacitor",
- group => "kapacitor",
- require => Package::Makepkg['kapacitor-bin'];
- }
-
- service { 'kapacitor':
- ensure => running,
- enable => true,
- require => Package::Makepkg['kapacitor-bin'];
- }
-}
diff --git a/modules/tick/manifests/server/kapacitor/alert.pp b/modules/tick/manifests/server/kapacitor/alert.pp
deleted file mode 100644
index 33683af..0000000
--- a/modules/tick/manifests/server/kapacitor/alert.pp
+++ /dev/null
@@ -1,7 +0,0 @@
-define tick::server::kapacitor::alert($source) {
- file { "/etc/kapacitor/load/tasks/${name}.tick":
- source => $source,
- require => File["/etc/kapacitor/load/tasks"],
- notify => Service['kapacitor'];
- }
-}
diff --git a/modules/tick/templates/kapacitor.conf b/modules/tick/templates/kapacitor.conf
deleted file mode 100644
index da47c6b..0000000
--- a/modules/tick/templates/kapacitor.conf
+++ /dev/null
@@ -1,29 +0,0 @@
-hostname = "localhost"
-data_dir = "/media/persistent/kapacitor"
-[http]
- bind-address = "127.0.0.1:9092"
-[logging]
- file = "/var/log/kapacitor/kapacitor.log"
- level = "INFO"
-[load]
- enabled = true
- dir = "/etc/kapacitor/load"
-[replay]
- dir = "/media/persistent/kapacitor/replay"
-[storage]
- boltdb = "/media/persistent/kapacitor/kapacitor.db"
-[[influxdb]]
- enabled = true
- default = true
- name = "localhost"
- urls = ["http://localhost:8086"]
-[smtp]
- enabled = true
- host = "mail.tozt.net"
- port = 465
- username = "kapacitor-noreply@tozt.net"
- password = "<%= @smtp_password %>"
- from = "kapacitor-noreply@tozt.net"
- to = ["<%= @smtp_to %>"]
- global = true
- state-changes-only = true