--- hiera_include: - radarr - profiles::nginx::ldapauth - profiles::media::radarr # manage radarr radarr::params::user: radarr radarr::params::group: media radarr::params::manage_group: false radarr::params::archive_version: 5.7.0 radarr::params::port: 8000 # additional altnames profiles::pki::vault::alt_names: - radarr.main.unkin.net - radarr.service.consul - radarr.query.consul - "radarr.service.%{facts.country}-%{facts.region}.consul" # manage a simple nginx reverse proxy profiles::nginx::simpleproxy::nginx_vhost: 'radarr.query.consul' profiles::nginx::simpleproxy::nginx_aliases: - radarr.main.unkin.net - radarr.service.consul - radarr.query.consul - "radarr.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_radarr,ou=services,ou=users,dc=main,dc=unkin,dc=net' ldap_template: '(&(uid=%(username)s)(memberOf=ou=radarr_access,ou=groups,dc=main,dc=unkin,dc=net))' # configure consul service consul::services: radarr: service_name: 'radarr' tags: - 'media' - 'radarr' address: "%{facts.networking.ip}" port: 443 checks: - id: 'radarr_http_check' name: 'radarr 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: radarr disposition: write