puppet fails when using hiera lookup on package installation
Hey guys. Pretty new to puppet and am having issues with a hiera lookup specifically when installing packages. I believe puppet thinks that the package resource is missing a title - it just has a...
View Articledo i need a site.pp if im using hiera?
do i still need a manifests/site.pp if i'm using hiera? for example, if i have production/data/nodes/nodename.yaml, an appropriately configured hiera.yaml in production/, do i still need to define...
View ArticleHiera not working for puppet version 5
Hello , I recently upgraded puppet version 3 to version 5. all is working fine with new version by my hiera configurations for puppet 5 is not working. i think even the hiera.yaml is not getting read....
View ArticlePuppet 5 module set and merge array param from Hiera and node manifest
Hi everyone I'm trying to make a basic module in Puppet 5.5 to manage lines in a config file for an in-house app. Actually managing the file and writing the lines is the easy part but the problem I'm...
View ArticleCan hiera match on a partial fact
I need to install and configure a daemon on our servers that will have different settings based on what location the server is. Our server naming convention denotes location-function-number-then if...
View ArticleHiera Couchdb Http Paths Order
When configuring the **:http:** section, you can specify a **:paths:** options where you identify a database or some other database name, then you specify a document(s). Does the order of multiple...
View ArticleFailed to start Hiera: RuntimeError: v5 hiera.yaml is only to be used inside...
I'm getting started with managing my code using hiera. Here's what my hiera.yaml looks like: --- version: 5 defaults: datadir: data data_hash: yaml_data hierarchy: - name: "Secret data (encrypted)"...
View Articleconverting Hiera v3 to v5 - :merge_behavior: deeper option?
Hi I am in the process of migrating v3 hiera.yaml to v5 and I would like all hash merges to merge 'deep' by default, the same way :merge_behavior: deeper in v3 parameter provides. I can't seem to find...
View ArticleNode classifications made via hiera do not show up in PE Console
I have been experimenting with using hiera for node classification. I followed this example: http://docs.puppetlabs.com/hiera/1/complete_example.html I was able to assign a node of mine two classes as...
View Articlehiera lookup elsewhere in a repository
Hello I want to create a separate git repository for a version controlled flat text file which stores simple data and have a puppet manifest lookup data directly in there and do something with it. We...
View Articlehash not creating file in sudoers.d file . Under dat_eng, I should see...
# -- Module: sudo ------------------------------------------------------- {{{ # sudo::configs: cloud-init: content: | Defaults:someuser !requiretty server ALL = NOPASSWD: ALL someuser ALL = NOPASSWD:...
View ArticleHow do I avoid node level hiera data? How much do you use node hiera data?
We've got a fairly normal hiera data hierarchy set up, with a high level "common.yaml" and a low node level "%fqdn.yaml", plus a few levels in between. What is more unusual is that we have thousands...
View Articlehiera.yaml expects array, got struct
Hey all, New to puppet enterprise but trying to migrate an old puppet open source to PE and have been struggling with hiera. Maybe y'all can help... I get this error on my test node when i try to run...
View Article[Puppet 5.5/Module] how to use hiera in a ruby function ?
I want simply use an hiera value in a ruby function,I can do it with a fact, but not an hiera My hiera value ucmdb::listener: "%{hiera('ucmdb::server')}:%{hiera('ucmdb::defaultport')}"*
View Articleloadyaml resolving interpolated variables / functions
Hi, I love how within Hiera I can do lookups to other variables within the same or other Yaml in the hierarchy. However when I used loadyaml function in stdlib, that feature is lost - the...
View ArticleCreate a JSON config file from Hiera data
Hi guys, I'm fairly new to Puppet, using Puppet v4.10 with Hiera v3.3. I would like to create a config file in JSON format directly from its HIera definition, i.e., something like: docker::file: name:...
View Articlehiera -c --debug crashing
I am trying to debug why some files in :heirarchy do not appear to be picked up by hiera. To try to debug this, I wanted to dump out the hierarchy variable. But `puppet lookup :heirarchy` returns...
View ArticleMerging problem
Hello, I have a custom puppet module, to simplify: class mgmt ( Array $array = [] ) { notify {"$array":} } I have a hiera and specify array in two different hiera files: hieradata/os/Centos.yaml...
View Articlefunction lookup did not find a value
bare with me as I am new to Puppet. recently got asked to implement puppet for opsworks for our environmentents. everything is setup to pull code from source control. am trying to get a module working...
View ArticleIssue with handling sensitive data (passwords) using Puppet and Hiera-Eyaml.
Hi guys, I am testing Hiera-Eyaml for encrypting the passwords for the users in our Cassandra databases. Encrypting the passwords in the eyaml files and passing the Hiera data to the testing nodes...
View ArticleSinglenode & Same instllations & configurations in a node but in different...
Hello, I am using Yaml file which is basically called hiera data in puppet for managing the environment in a node. For example Now I have websphere application installation in /company/WAS/. Now I...
View ArticleInfrastructure-wide Facts?
I'm wondering what is the best way to define an infratructure-wide fact? For example, that fact might be my company name, or maybe the datacentre name. I'm able to set that fact on the Puppet Master,...
View ArticleIterate optional hiera hash
I've got the following hiera, but it's optional... mymodule::myclass::domains: some.domain.com: required: "this_required_string" anotherdomain.com: required: "another_required_string" optional:...
View ArticlePulling data from two different Hiera servers
Is it possible to pull data from two different Hiera sources? We are currently in a transition period of switching from Puppet 3.x to 4.x and because of that we have two different Puppet servers. One...
View ArticleHOCON auth.conf - how to edit?
Hello. As the title says really - I seem to be able to have the ability to edit some entries in the HOCON auth.conf with this hiera entry:...
View ArticleWeird 'cache' issue when calling roles via dynamic role assignment
Puppet 5.3 I've loosely followed [this post](https://www.craigdunn.org/2012/05/239/) to structure my system roles and profiles. This means I can say I want 'X11' on a box and it'll then call a set of...
View ArticlePuppet Enterprise-encrypt/hide password from agent output
I encrypted password using hiera: dsc_xADUser {'FirstUser': dsc_ensure => 'present', dsc_domainname => 'ad.contoso.com', dsc_username => 'tfl', dsc_userprincipalname =>...
View ArticleLookup all keys in hiera
Is it possible to use the puppet lookup command to find the location of all keys for a node in hiera? Background: I want to be able to specify a node, and find out what all the keys are in hiera. We...
View Articlehiera_hash command not getting hiera data from module layer
Hello, I'm trying to catch up to Puppet 5.5 from 3.x, so maybe there's a newer/better way to do what I'm attempting. If so please point out the errors of my ways. Anyway, to the issue. I'm attempting...
View ArticleHow to override this using hiera
I have this in the manifest ---------- Boolean $testvar = true if $testvar { blah blah } ---------- My goal is, I do not want to go inside the if statement when the manifest runs in HostA, so I...
View Article