puppet-prod/modules/readarr/manifests/config.pp
Ben Vincent 0b7f07692c feat: add readarr module
- add media::readarr role
2024-06-27 21:21:18 +10:00

28 lines
1.0 KiB
Puppet

class readarr::config (
$user = $readarr::params::user,
$group = $readarr::params::group,
$base_path = $readarr::params::base_path,
$bind_address = $readarr::bind_address,
$port = $readarr::port,
$ssl_port = $readarr::ssl_port,
$enable_ssl = $readarr::enable_ssl,
$launch_browser = $readarr::launch_browser,
$api_key = $readarr::api_key,
$authentication_method = $readarr::authentication_method,
$authentication_required = $readarr::authentication_required,
$branch = $readarr::branch,
$log_level = $readarr::log_level,
$ssl_cert_path = $readarr::ssl_cert_path,
$ssl_cert_password = $readarr::ssl_cert_password,
$url_base = $readarr::url_base,
$instance_name = $readarr::instance_name,
) {
file { "${base_path}/config.xml":
ensure => file,
content => template('readarr/readarr_config.xml.erb'),
owner => $user,
group => $group,
mode => '0644',
}
}