Skip to content

Commit

Permalink
fix some style guide issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lbetz committed Nov 28, 2023
1 parent 3299c99 commit 7b9ed7c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
5 changes: 0 additions & 5 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,6 @@ The following parameters are available in the `icinga::server` class:
* [`zone`](#-icinga--server--zone)
* [`colocation_endpoints`](#-icinga--server--colocation_endpoints)
* [`workers`](#-icinga--server--workers)
* [`extra_zones`](#-icinga--server--extra_zones)
* [`global_zones`](#-icinga--server--global_zones)
* [`ca_server`](#-icinga--server--ca_server)
* [`ticket_salt`](#-icinga--server--ticket_salt)
Expand Down Expand Up @@ -650,10 +649,6 @@ All worker zones with key 'endpoints' for endpoint objects.

Default value: `{}`

##### <a name="-icinga--server--extra_zones"></a>`extra_zones`

Additonal zones that are not limited to the 'parent_zone' as parent.

##### <a name="-icinga--server--global_zones"></a>`global_zones`

Data type: `Array[String]`
Expand Down
5 changes: 1 addition & 4 deletions manifests/server.pp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
# @param workers
# All worker zones with key 'endpoints' for endpoint objects.
#
# @param extra_zones
# Additonal zones that are not limited to the 'parent_zone' as parent.
#
# @param global_zones
# List of global zones to configure.
#
Expand Down Expand Up @@ -80,7 +77,7 @@
}

# inject parent zone if no parent exists
$_workers = $workers.reduce( {} ) |$memo, $worker| { $memo + { $worker[0] => { parent => $zone } + $worker[1] } }
$_workers = $workers.reduce({}) |$memo, $worker| { $memo + { $worker[0] => { parent => $zone } + $worker[1] } }

class { 'icinga':
ca => $_ca,
Expand Down
2 changes: 1 addition & 1 deletion manifests/worker.pp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
Boolean $run_web = false,
) {
# inject parent zone if no parent exists
$_workers = $workers.reduce( {} ) |$memo, $worker| { $memo + { $worker[0] => { parent => $zone } + $worker[1] } }
$_workers = $workers.reduce({}) |$memo, $worker| { $memo + { $worker[0] => { parent => $zone } + $worker[1] } }

class { 'icinga':
ca => false,
Expand Down

0 comments on commit 7b9ed7c

Please sign in to comment.