Skip to content

Commit

Permalink
appeasement
Browse files Browse the repository at this point in the history
  • Loading branch information
towo committed Dec 23, 2021
1 parent 12a9dac commit e9ef7f8
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 29 deletions.
2 changes: 1 addition & 1 deletion manifests/client.pp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class bareos::client (
Boolean $manage_service = $bareos::manage_service,
Boolean $manage_package = $bareos::manage_package,
String $package_name = $bareos::client_package_name,
Variant[String, Array[String]] $package_name = $bareos::client_package_name,
String $package_ensure = $bareos::package_ensure,
String $service_name = $bareos::client_service_name,
String $service_ensure = $bareos::service_ensure,
Expand Down
13 changes: 9 additions & 4 deletions manifests/client/client.pp
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,9 @@
# Required: false
#
# [*tls_dh_file*]
# Tls Dh File: Path to PEM encoded Diffie-Hellman parameter file. If this directive is specified, DH key exchange will be used for the ephemeral keying, allowing for forward secrecy of communications.
# Tls Dh File: Path to PEM encoded Diffie-Hellman parameter file. If this
# directive is specified, DH key exchange will be used for the ephemeral
# keying, allowing for forward secrecy of communications.
#
# Bareos Datatype: directory
# Bareos Default: Not set
Expand All @@ -307,14 +309,17 @@
# Required: false
#
# [*tls_require*]
# Tls Require: Without setting this to yes, Bareos can fall back to use unencryption connections. Enabling this implicietly sets "TLS Enable = yes".
# Tls Require: Without setting this to yes, Bareos can fall back to use
# unencryption connections. Enabling this implicietly sets "TLS Enable = yes".
#
# Bareos Datatype: boolean
# Bareos Default: false
# Required: false
#
# [*tls_verify_peer*]
# Tls Verify Peer: If disabled, all certificates signed by a known CA will be accepted. If enabled, the CN of a certificate must the Address or in the "TLS Allowed CN" list.
# Tls Verify Peer: If disabled, all certificates signed by a known CA will be
# accepted. If enabled, the CN of a certificate must the Address or in the
# "TLS Allowed CN" list.
#
# Bareos Datatype: boolean
# Bareos Default: true
Expand All @@ -335,6 +340,7 @@
# Required: false
#
class bareos::client::client (
Bareos::Resource $name_client = 'bareos-fd',
Bareos::Module::Ensure $ensure = present,
Optional[Integer[0]] $absolute_job_timeout = undef,
Optional[Boolean] $allow_bandwidth_bursting = undef,
Expand All @@ -355,7 +361,6 @@
Optional[Integer[0]] $maximum_connections = undef,
Optional[Integer[0]] $maximum_network_buffer_size = undef,
Optional[Bareos::Resource] $messages = undef,
Optional[Bareos::Resource] $name_client = 'bareos-fd',
Optional[Stdlib::AbsolutePath] $pid_directory = undef,
Optional[Bareos::EncryptionCipher] $pki_cipher = undef,
Optional[Bareos::Boolean] $pki_encryption = undef,
Expand Down
2 changes: 1 addition & 1 deletion manifests/console.pp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# It is not intended to be used directly by external resources like node definitions or other modules.
class bareos::console (
Boolean $manage_package = $bareos::manage_package,
String $package_name = $bareos::console_package_name,
Variant[String, Array[String]] $package_name = $bareos::console_package_name,
String $package_ensure = $bareos::package_ensure,
Stdlib::AbsolutePath $config_dir = "${bareos::config_dir}/bconsole.d"
) inherits bareos {
Expand Down
2 changes: 1 addition & 1 deletion manifests/director.pp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Boolean $manage_service = $bareos::manage_service,
Boolean $manage_package = $bareos::manage_package,
Boolean $manage_database = $bareos::manage_database,
String $package_name = $bareos::director_package_name,
Variant[String, Array[String]] $package_name = $bareos::director_package_name,
String $package_ensure = $bareos::package_ensure,
String $service_name = $bareos::director_service_name,
Boolean $service_allow_restart = $bareos::director_service_allow_restart,
Expand Down
14 changes: 7 additions & 7 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,16 @@
Boolean $service_enable = true,
Boolean $manage_repo = true,
Boolean $manage_user = true,
String $package_name = 'bareos-common',
String $console_package_name = $bareos::params::console_package_name,
String $monitor_package_name = $bareos::params::monitor_package_name,
String $director_package_name = $bareos::params::director_package_name,
Variant[String, Array[String]] $package_name = 'bareos-common',
Variant[String, Array[String]] $console_package_name = $bareos::params::console_package_name,
Variant[String, Array[String]] $monitor_package_name = $bareos::params::monitor_package_name,
Variant[String, Array[String]] $director_package_name = $bareos::params::director_package_name,
String $director_service_name = $bareos::params::director_service_name,
Boolean $director_service_allow_restart = false,
Array[Stdlib::AbsolutePath] $director_managed_dirs = $bareos::params::director_managed_dirs,
String $client_package_name = $bareos::params::client_package_name,
Array[String] $director_managed_dirs = $bareos::params::director_managed_dirs,
Variant[String, Array[String]] $client_package_name = $bareos::params::client_package_name,
String $client_service_name = $bareos::params::client_service_name,
String $storage_package_name = $bareos::params::storage_package_name,
Variant[String, Array[String]] $storage_package_name = $bareos::params::storage_package_name,
String $storage_service_name = $bareos::params::storage_service_name,
) inherits bareos::params {
if $manage_repo {
Expand Down
2 changes: 1 addition & 1 deletion manifests/monitor.pp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# It is not intended to be used directly by external resources like node definitions or other modules.
class bareos::monitor (
Boolean $manage_package = $bareos::manage_package,
String $package_name = $bareos::monitor_package_name,
Variant[String, Array[String]] $package_name = $bareos::monitor_package_name,
String $package_ensure = $bareos::package_ensure,
Stdlib::AbsolutePath $config_dir = "${bareos::config_dir}/tray-monitor.d"
) inherits bareos {
Expand Down
2 changes: 1 addition & 1 deletion manifests/storage.pp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class bareos::storage (
Boolean $manage_service = $bareos::manage_service,
Boolean $manage_package = $bareos::manage_package,
String $package_name = $bareos::storage_package_name,
Variant[String, Array[String]] $package_name = $bareos::storage_package_name,
String $package_ensure = $bareos::package_ensure,
String $service_name = $bareos::storage_service_name,
String $service_ensure = $bareos::service_ensure,
Expand Down
4 changes: 2 additions & 2 deletions manifests/webui.pp
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
class bareos::webui (
Stdlib::AbsolutePath $config_dir = $bareos::config_dir_webui,
Hash $directors = {},
String $label_pooltype = '',
Optional[String] $label_pooltype = undef,
Boolean $manage_local_dir = true, # setup local bareos director
Boolean $manage_package = $bareos::manage_package,
Boolean $manage_service = $bareos::manage_service,
String $package_ensure = $bareos::package_ensure,
String $package_name = $bareos::webui_package_name,
Variant[String, Array[String]] $package_name = $bareos::webui_package_name,
Integer $pagination_default_value = 25,
String $pagination_values = '10,25,50,100',
Boolean $save_previous_state = false,
Expand Down
24 changes: 15 additions & 9 deletions types/addresses.pp
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
# @summary The weird, weird Bareos director addresses format
# @author Tobias @towo Wolter <tobias.wolter+voxpupuli@b1-systems.de>
# @see https://docs.bareos.org/Configuration/CustomizingTheConfiguration.html#datatypenetaddresses
type Profile::Addresses = Hash[
type Bareos::Addresses = Hash[
Enum['ip', 'ipv4', 'ipv6'], Variant[
Struct[{
addr => Stdlib::Host,
Optional[port] => Stdlib::Port,
}],
Array[Struct[{
addr => Stdlib::Host,
Optional[port] => Stdlib::Port,
}]]
Struct[
{
addr => Stdlib::Host,
Optional[port] => Stdlib::Port,
}
],
Array[
Struct[
{
addr => Stdlib::Host,
Optional[port] => Stdlib::Port,
}
]
]
]
]
4 changes: 2 additions & 2 deletions types/job/level.pp
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# @summary Backup job level
# @author Tobias @towo Wolter <towo+voxpupuli@b1-systems.de>
# @see https://docs.bareos.org/Configuration/CustomizingTheConfiguration.html#datatype-backup_level
type Profile::Job::Level = Enum[
type Bareos::Job::Level = Enum[
'Full',
'Differential',
'Incremental',
'VirtualFull',
'InitCatalog',
'Catalog',
'VolumeToCatalog',
'DiskToCatalog'
'DiskToCatalog',
]

0 comments on commit e9ef7f8

Please sign in to comment.