Skip to content

Commit

Permalink
Remove legacy hiera usage and data
Browse files Browse the repository at this point in the history
Legacy hiera data cause CI failure in acceptance tests.  While here,
replace calls to hiera() in examples to the corresponding lookup()
function.
  • Loading branch information
smortex committed Aug 9, 2023
1 parent 79221ef commit 425c3c0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 28 deletions.
6 changes: 3 additions & 3 deletions examples/OK_ltgt.pp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@
],
}

create_resources('patterndb::simple::ruleset', hiera('patterndb::simple::ruleset',{},'patterndb'))
create_resources('patterndb::simple::rule', hiera('patterndb::simple::rule',{},'patterndb'))
#create_resources('patterndb::simple::action', hiera('patterndb::simple::action',{},'patterndb'))
create_resources('patterndb::simple::ruleset', lookup('patterndb::simple::ruleset', undef, undef, {}))
create_resources('patterndb::simple::rule', lookup('patterndb::simple::rule', undef, undef, {}))
#create_resources('patterndb::simple::action', lookup('patterndb::simple::action', undef, undef, {}))
8 changes: 4 additions & 4 deletions manifests/hiera.pp
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
) {
create_resources(
'patterndb::parser',
hiera_hash("${prefix}::parser", {})
lookup("${prefix}::parser", default_value => {})
)
create_resources(
'patterndb::simple::ruleset',
hiera_hash("${prefix}::ruleset",{})
lookup("${prefix}::ruleset", default_value => {})
)
create_resources(
'patterndb::simple::rule',
hiera_hash("${prefix}::rule", {})
lookup("${prefix}::rule", default_value => {})
)
create_resources(
'patterndb::simple::action',
hiera_hash("${prefix}::action", {})
lookup("${prefix}::action", default_value => {})
)
}
21 changes: 0 additions & 21 deletions spec/acceptance/hieradata/common.yaml

This file was deleted.

0 comments on commit 425c3c0

Please sign in to comment.