compliance_markup's compliance_map function loads code incorrectly.

Description

the compliance_map function uses some ruby metaprogramming to set a constant per-environment, for the compliance_map object. This is fragile as the code may need to be changed and it will not get reloaded for the lifetime of the objects existence:

https://github.com/simp/pupmod-simp-compliance_markup/blob/master/lib/puppetx/simp/compliance_map.rb#L8

It also doesn't properly convert types. We should make this code load per-catalog like the compliance_markup hiera v3 data backend does.

Acceptance Criteria

None

Labels

None

Epic Link

None

Story Points

None

Components

Assignee

Dylan Cochran

Affects versions

Priority

Highest
Configure