Skip to content

Commit e548fdd

Browse files
author
Lennart Betz
committed
downgrade requirement of stdlib less than v9.0.0
1 parent ea9b4e1 commit e548fdd

11 files changed

+11
-11
lines changed

functions/parse.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function icinga2::parse(
2828
icinga2::icinga2_attributes(
2929
$attrs,
3030
concat($icinga2::globals::reserved, $reserved),
31-
stdlib::merge($icinga2::_constants, $constants),
31+
$icinga2::_constants + $constants,
3232
$indent
3333
)
3434
}

manifests/feature/elasticsearch.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
icinga2::object { 'icinga2::object::ElasticsearchWriter::elasticsearch':
159159
object_name => 'elasticsearch',
160160
object_type => 'ElasticsearchWriter',
161-
attrs => delete_undef_values(stdlib::merge($attrs, $attrs_ssl)),
161+
attrs => delete_undef_values($attrs + $attrs_ssl),
162162
attrs_list => concat(keys($attrs), keys($attrs_ssl)),
163163
target => "${conf_dir}/features-available/elasticsearch.conf",
164164
notify => $_notify,

manifests/feature/gelf.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
icinga2::object { 'icinga2::object::GelfWriter::gelf':
126126
object_name => 'gelf',
127127
object_type => 'GelfWriter',
128-
attrs => delete_undef_values(stdlib::merge($attrs, $attrs_ssl)),
128+
attrs => delete_undef_values($attrs + $attrs_ssl),
129129
attrs_list => concat(keys($attrs), keys($attrs_ssl)),
130130
target => "${conf_dir}/features-available/gelf.conf",
131131
order => 10,

manifests/feature/icingadb.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
icinga2::object { 'icinga2::object::IcingaDB::icingadb':
177177
object_name => 'icingadb',
178178
object_type => 'IcingaDB',
179-
attrs => delete_undef_values(stdlib::merge($attrs, $attrs_tls)),
179+
attrs => delete_undef_values($attrs + $attrs_tls),
180180
attrs_list => concat(keys($attrs), keys($attrs_tls)),
181181
target => "${conf_dir}/features-available/icingadb.conf",
182182
order => 10,

manifests/feature/idomysql.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@
246246
icinga2::object { 'icinga2::object::IdoMysqlConnection::ido-mysql':
247247
object_name => 'ido-mysql',
248248
object_type => 'IdoMysqlConnection',
249-
attrs => delete_undef_values(stdlib::merge($attrs, $attrs_ssl)),
249+
attrs => delete_undef_values($attrs + $attrs_ssl),
250250
attrs_list => concat(keys($attrs), keys($attrs_ssl)),
251251
target => "${conf_dir}/features-available/ido-mysql.conf",
252252
order => 10,

manifests/feature/idopgsql.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@
227227
icinga2::object { 'icinga2::object::IdoPgsqlConnection::ido-pgsql':
228228
object_name => 'ido-pgsql',
229229
object_type => 'IdoPgsqlConnection',
230-
attrs => delete_undef_values(stdlib::merge($attrs, $attrs_ssl)),
230+
attrs => delete_undef_values($attrs + $attrs_ssl),
231231
attrs_list => concat(keys($attrs), keys($attrs_ssl)),
232232
target => "${conf_dir}/features-available/ido-pgsql.conf",
233233
order => 10,

manifests/feature/influxdb.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@
201201
icinga2::object { 'icinga2::object::InfluxdbWriter::influxdb':
202202
object_name => 'influxdb',
203203
object_type => 'InfluxdbWriter',
204-
attrs => delete_undef_values(stdlib::merge($attrs, $attrs_ssl)),
204+
attrs => delete_undef_values($attrs + $attrs_ssl),
205205
attrs_list => concat(keys($attrs), keys($attrs_ssl)),
206206
target => "${conf_dir}/features-available/influxdb.conf",
207207
notify => $_notify,

manifests/feature/influxdb2.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
icinga2::object { 'icinga2::object::Influxdb2Writer::influxdb2':
179179
object_name => 'influxdb2',
180180
object_type => 'Influxdb2Writer',
181-
attrs => delete_undef_values(stdlib::merge($attrs, $attrs_ssl)),
181+
attrs => delete_undef_values($attrs + $attrs_ssl),
182182
attrs_list => concat(keys($attrs), keys($attrs_ssl)),
183183
target => "${conf_dir}/features-available/influxdb2.conf",
184184
notify => $_notify,

manifests/init.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
$_reserved = $icinga2::globals::reserved
131131

132132
# merge constants with defaults
133-
$_constants = stdlib::merge($icinga2::globals::constants, $constants)
133+
$_constants = $icinga2::globals::constants + $constants
134134

135135
# validate confd, boolean or string
136136
if $confd =~ Boolean {

metadata.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"dependencies": [
1111
{
1212
"name": "puppetlabs/stdlib",
13-
"version_requirement": ">= 9.0.0 < 10.0.0"
13+
"version_requirement": ">= 6.6.0 < 10.0.0"
1414
},
1515
{
1616
"name": "puppetlabs/concat",

templates/object.conf.epp

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
Array $ignore = [],
1212
| -%>
1313

14-
<% $_attrs = stdlib::merge($attrs, { 'assign where' => $assign, 'ignore where' => $ignore, }) -%>
14+
<% $_attrs = $attrs + { 'assign where' => $assign, 'ignore where' => $ignore, } -%>
1515
<% if $apply =~ String { %>apply <%= $object_type -%>
1616
<% if $prefix { -%>
1717
<% if $prefix =~ String { %> "<%= $prefix %>"<% } else { -%>

0 commit comments

Comments
 (0)