- refactor sonarr locations to generalised locations - set locations to be deep merged - updated hiera_include statements for media and media subroles - added eyaml entries for all ldap credentials
57 lines
1.6 KiB
YAML
57 lines
1.6 KiB
YAML
---
|
|
hiera_include:
|
|
- readarr
|
|
- profiles::nginx::ldapauth
|
|
|
|
# manage readarr
|
|
readarr::params::user: readarr
|
|
readarr::params::group: media
|
|
readarr::params::manage_group: false
|
|
readarr::params::archive_version: 0.3.28
|
|
readarr::params::port: 8000
|
|
|
|
# additional altnames
|
|
profiles::pki::vault::alt_names:
|
|
- readarr.main.unkin.net
|
|
- readarr.service.consul
|
|
- readarr.query.consul
|
|
- "readarr.service.%{facts.country}-%{facts.region}.consul"
|
|
|
|
# manage a simple nginx reverse proxy
|
|
profiles::nginx::simpleproxy::nginx_vhost: 'readarr.query.consul'
|
|
profiles::nginx::simpleproxy::nginx_aliases:
|
|
- readarr.main.unkin.net
|
|
- readarr.service.consul
|
|
- readarr.query.consul
|
|
- "readarr.service.%{facts.country}-%{facts.region}.consul"
|
|
profiles::nginx::simpleproxy::proxy_port: 8000
|
|
profiles::nginx::simpleproxy::proxy_host: 127.0.0.1
|
|
profiles::nginx::simpleproxy::proxy_path: '/'
|
|
profiles::nginx::simpleproxy::use_default_location: false
|
|
nginx::client_max_body_size: 20M
|
|
|
|
ldap_binddn: 'cn=svc_readarr,ou=services,ou=users,dc=main,dc=unkin,dc=net'
|
|
ldap_template: '(memberOf=ou=readarr_access,ou=groups,dc=main,dc=unkin,dc=net)'
|
|
|
|
# configure consul service
|
|
consul::services:
|
|
readarr:
|
|
service_name: 'readarr'
|
|
tags:
|
|
- 'media'
|
|
- 'readarr'
|
|
address: "%{facts.networking.ip}"
|
|
port: 443
|
|
checks:
|
|
- id: 'readarr_http_check'
|
|
name: 'Readarr HTTP Check'
|
|
http: "https://%{facts.networking.fqdn}:443/consul/health"
|
|
method: 'GET'
|
|
tls_skip_verify: true
|
|
interval: '10s'
|
|
timeout: '1s'
|
|
profiles::consul::client::node_rules:
|
|
- resource: service
|
|
segment: readarr
|
|
disposition: write
|