Merge pull request 'neoloc/sonarr_deploy' (#48) from neoloc/sonarr_deploy into develop

Reviewed-on: https://git.query.consul/unkinben/puppet-prod/pulls/48
This commit was merged in pull request #48.
This commit is contained in:
2024-06-21 22:53:06 +10:00
9 changed files with 210 additions and 1 deletions
+3
View File
@@ -164,6 +164,7 @@ profiles::packages::install:
- curl
- dstat
- expect
- gcc
- gzip
- git
- htop
@@ -184,8 +185,10 @@ profiles::packages::install:
- socat
- strace
- sysstat
- tar
- tmux
- traceroute
- unar
- unzip
- vim
- vnstat
+55
View File
@@ -0,0 +1,55 @@
---
hiera_include:
- sonarr
- profiles::nginx::simpleproxy
# manage sonarr
sonarr:
user: sonarr
group: sonarr
base_path: /opt/sonarr
install_path: /opt/sonarr/bin
archive_version: 4.0.5
archive_name: Sonarr.main.linux-x64.tar.gz
service_enable: true
service_name: sonarr
# additional altnames
profiles::pki::vault::alt_names:
- sonarr.main.unkin.net
- sonarr.service.consul
- sonarr.query.consul
- "sonarr.service.%{facts.country}-%{facts.region}.consul"
# manage a simple nginx reverse proxy
profiles::nginx::simpleproxy::nginx_vhost: 'sonarr.query.consul'
profiles::nginx::simpleproxy::nginx_aliases:
- sonarr.main.unkin.net
- sonarr.service.consul
- sonarr.query.consul
- "sonarr.service.%{facts.country}-%{facts.region}.consul"
profiles::nginx::simpleproxy::proxy_port: 8989
profiles::nginx::simpleproxy::proxy_path: '/'
# configure consul service
nginx::client_max_body_size: 10M
consul::services:
sonarr:
service_name: 'sonarr'
tags:
- 'media'
- 'sonarr'
address: "%{facts.networking.ip}"
port: 443
checks:
- id: 'sonarr_http_check'
name: 'Sonarr HTTP Check'
http: "https://%{facts.networking.fqdn}:443"
method: 'GET'
tls_skip_verify: true
interval: '10s'
timeout: '1s'
profiles::consul::client::node_rules:
- resource: service
segment: sonarr
disposition: write