puppetlabs / puppetlabs-pe_status_check

Self Service Module for Puppet Enterprise
Apache License 2.0
1 stars 33 forks source link

plans fail when run from PE console #153

Closed vchepkov closed 2 years ago

vchepkov commented 2 years ago

PE2019.8.11

Plan uses environmental hiera and fails on

      - "nodes/%{trusted.certname}.yaml"

pe_status_check::infra_summary:

{
  "msg" : "Interpolations are not supported in lookups outside of an apply block: Undefined variable 'trusted' (file: /opt/puppetlabs/server/data/orchestration-services/code/environments/production/hiera.yaml)",
  "kind" : "bolt/pal-error",
  "details" : { }
}
MartyEwings commented 2 years ago

Hi @vchepkov would it be possible to set up a static hierarchy as per and try again for me? https://github.com/puppetlabs/puppetlabs-pe_status_check#setup-requirements-1

vchepkov commented 2 years ago

Ah, missed that, yes, adding plan_hierarchy fixed the issue, thank you