Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

Hiera returning wrong environment from YAML source

$
0
0
Hey Comm, Would be grateful if anyone could help me with this. Aim: I'm trying to assign an environment other than default production using an ENC script I've written in bash. The script calls hiera as follows where it fails: hiera environment -y /etc/puppetlabs/code/nodes/test.hs1.nl.yaml --config /etc/puppetlabs/code/hiera-enc.yaml -d DEBUG: 2016-01-04 23:28:02 +0100: Hiera YAML backend starting DEBUG: 2016-01-04 23:28:02 +0100: Looking up environment in YAML backend DEBUG: 2016-01-04 23:28:02 +0100: Looking for data source default DEBUG: 2016-01-04 23:28:02 +0100: Found environment in default production Content of `/etc/puppetlabs/code/nodes/test.hs1.nl.yaml`: --- environment: 'hs1-ext' Content of `/etc/puppetlabs/code/hiera-enc.yaml`: --- :backends: - yaml :hierarchy: - "%{::fqdn}" - "default" :yaml: :datadir: /etc/puppetlabs/code/nodes Am I overseeing anything? Thanks in advance! Richard

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>