hiera_http lookup failing for jenkins Hiera data store

asked 2018-04-18 10:24:44 -0500

Mr_Sharma gravatar image

updated 2018-05-04 01:29:34 -0500

Hi, Few details on my setup: Integrated Jenkins 2.11 with PE 2017.3 using PE pipeline plugin which also provides the hiera backend support. I am trying to lookup for hiera data which has been stored on my Jenkins "Hiera Data Store" as below:

test::test_hiera::myname rsharma TestBuild

Content of my hiera.yaml version 5 is as below:

version: 5

defaults:
  datadir: hieradata
  data_hash: yaml_data

hierarchy:
  - name: 'Jenkins data source'
    lookup_key: hiera_http
    uris:
      - "http://myjenkins:8181/hiera/lookup?scope=%{trusted.certname}&key=__KEY__"
      - "http://myjenkins:8181/hiera/lookup?scope=%{trusted.certname}&key=__MODULE__"
      - "http://myjenkins:8181/hiera/lookup?scope=%{trusted.certname}&key=__CLASS__"
      - "http://myjenkins:8181/hiera/lookup?scope=%{trusted.certname}&key=__PARAMETER__"
      - "http://myjenkins:8181/hiera/lookup?scope=%{environment}&key=__KEY__"
    options:
      output: json
      failure: graceful
      use_auth: false
      auth_user: admin
      auth_pass: xxxxx

Getting below error while trying to lookup a key from my puppet master.

[root@puppetmaster puppet]# puppet lookup test::test_hiera::myname --environment production --explain
Warning: Module 'puppet_enterprise': Value returned from data_hash function 'hocon_data', when using location '/etc/puppetlabs/enterprise/conf.d/pe.conf', must use keys qualified with the name of the module
Warning: Module 'pe_repo': Value returned from data_hash function 'hocon_data', when using location '/etc/puppetlabs/enterprise/conf.d/pe.conf', must use keys qualified with the name of the module
Warning: Module 'pe_repo': Value returned from data_hash function 'hocon_data', when using location '/etc/puppetlabs/enterprise/conf.d/pe.conf', must use keys qualified with the name of the module
Warning: Module 'pe_repo': Value returned from data_hash function 'hocon_data', when using location '/etc/puppetlabs/enterprise/conf.d/pe.conf', must use keys qualified with the name of the module
Warning: Module 'pe_repo': Value returned from data_hash function 'hocon_data', when using location '/etc/puppetlabs/enterprise/conf.d/pe.conf', must use keys qualified with the name of the module
Warning: Module 'pe_repo': Value returned from data_hash function 'hocon_data', when using location '/etc/puppetlabs/enterprise/conf.d/pe.conf', must use keys qualified with the name of the module
Warning: Module 'pe_repo': Value returned from data_hash function 'hocon_data', when using location '/etc/puppetlabs/enterprise/conf.d/pe.conf', must use keys qualified with the name of the module
Warning: Module 'pe_repo': Value returned from data_hash function 'hocon_data', when using location '/etc/puppetlabs/enterprise/conf.d/common.conf', must use keys qualified with the name of the module
Warning: Module 'pe_repo': Value returned from data_hash function 'hocon_data', when using location '/etc/puppetlabs/enterprise/conf.d/common.conf', must use keys qualified with the name of the module
Warning: Module 'pe_repo': Value returned from data_hash function 'hocon_data', when using location '/etc/puppetlabs/enterprise/conf.d/common.conf', must use keys qualified with the name of the module
Warning: Module 'pe_repo': Value returned from data_hash function 'hocon_data', when using location '/etc/puppetlabs/enterprise/conf.d/common.conf', must use keys qualified with the name of the module
Warning: Module 'pe_repo': Value returned from data_hash function 'hocon_data', when using location '/etc/puppetlabs/enterprise/conf.d/common.conf', must use keys ...
(more)
edit retag flag offensive close merge delete

Comments

Did anyone work on this integration theme or confronted the same scenario?

Mr_Sharma gravatar imageMr_Sharma ( 2018-04-30 06:38:32 -0500 )edit