diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-07-01 20:46:27 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-07-01 20:46:27 -0400 |
commit | c09f764b265845fb234ce1752ce3ee1048ced1b9 (patch) | |
tree | c41212f48d26c66d51dea0cc18e80ea3cad2e2db | |
parent | 1001a47bdc64de2560fa13993bfae53bb5909bc5 (diff) | |
download | puppet-tozt-c09f764b265845fb234ce1752ce3ee1048ced1b9.tar.gz puppet-tozt-c09f764b265845fb234ce1752ce3ee1048ced1b9.zip |
stop running an influxdb server
-rw-r--r-- | manifests/tozt.pp | 1 | ||||
-rw-r--r-- | modules/tick/files/influxdb.conf | 8 | ||||
-rw-r--r-- | modules/tick/manifests/server.pp | 3 | ||||
-rw-r--r-- | modules/tick/manifests/server/influxdb.pp | 30 | ||||
-rw-r--r-- | modules/tozt/files/nginx/influxdb-tls.conf | 14 | ||||
-rw-r--r-- | modules/tozt/files/nginx/influxdb.conf | 10 | ||||
-rw-r--r-- | modules/tozt/manifests/tick.pp | 11 |
7 files changed, 0 insertions, 77 deletions
diff --git a/manifests/tozt.pp b/manifests/tozt.pp index 9f7db97..8fd9b11 100644 --- a/manifests/tozt.pp +++ b/manifests/tozt.pp @@ -21,6 +21,5 @@ node 'tozt', 'tozt.localdomain' { include tozt::paste include tozt::services include tozt::site - include tozt::tick include tozt::ttrss } diff --git a/modules/tick/files/influxdb.conf b/modules/tick/files/influxdb.conf deleted file mode 100644 index fbacf36..0000000 --- a/modules/tick/files/influxdb.conf +++ /dev/null @@ -1,8 +0,0 @@ -[meta] - dir = "/media/persistent/influxdb/meta" -[data] - dir = "/media/persistent/influxdb/data" - wal-dir = "/media/persistent/influxdb/wal" - series-id-set-cache-size = 100 -[http] - bind-address = "127.0.0.1:8086" diff --git a/modules/tick/manifests/server.pp b/modules/tick/manifests/server.pp deleted file mode 100644 index c129b6a..0000000 --- a/modules/tick/manifests/server.pp +++ /dev/null @@ -1,3 +0,0 @@ -class tick::server { - contain tick::server::influxdb -} diff --git a/modules/tick/manifests/server/influxdb.pp b/modules/tick/manifests/server/influxdb.pp deleted file mode 100644 index 69f6923..0000000 --- a/modules/tick/manifests/server/influxdb.pp +++ /dev/null @@ -1,30 +0,0 @@ -class tick::server::influxdb { - package { 'influxdb': - ensure => installed; - } - - file { - "/etc/influxdb": - ensure => directory; - "/etc/influxdb/influxdb.conf": - source => "puppet:///modules/tick/influxdb.conf", - require => [ - Package['influxdb'], - File["/etc/influxdb"], - ], - notify => Service['influxdb']; - "/media/persistent/influxdb": - ensure => directory, - require => Package['influxdb']; - } - - service { 'influxdb': - ensure => running, - enable => true, - require => [ - Package['influxdb'], - File["/etc/influxdb/influxdb.conf"], - File["/media/persistent/influxdb"], - ]; - } -} diff --git a/modules/tozt/files/nginx/influxdb-tls.conf b/modules/tozt/files/nginx/influxdb-tls.conf deleted file mode 100644 index 2341261..0000000 --- a/modules/tozt/files/nginx/influxdb-tls.conf +++ /dev/null @@ -1,14 +0,0 @@ -server { - listen 443 ssl; - server_name influxdb.tozt.net; - - access_log /var/log/nginx/influxdb.access.log; - error_log /var/log/nginx/influxdb.error.log; - - include ssl; - - location / { - proxy_pass http://127.0.0.1:8086/; - } -} -# vim:ft=nginx diff --git a/modules/tozt/files/nginx/influxdb.conf b/modules/tozt/files/nginx/influxdb.conf deleted file mode 100644 index 744e2fd..0000000 --- a/modules/tozt/files/nginx/influxdb.conf +++ /dev/null @@ -1,10 +0,0 @@ -server { - listen 80; - server_name influxdb.tozt.net; - - access_log /var/log/nginx/influxdb.access.log; - error_log /var/log/nginx/influxdb.error.log; - - rewrite ^(.*) https://$host$1 permanent; -} -# vim:ft=nginx diff --git a/modules/tozt/manifests/tick.pp b/modules/tozt/manifests/tick.pp deleted file mode 100644 index d4df535..0000000 --- a/modules/tozt/manifests/tick.pp +++ /dev/null @@ -1,11 +0,0 @@ -class tozt::tick { - include tick::server - - nginx::site { - "influxdb-tls": - source => 'puppet:///modules/tozt/nginx/influxdb-tls.conf', - require => Class['certbot']; - "influxdb": - source => 'puppet:///modules/tozt/nginx/influxdb.conf'; - } -} |