Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Browsing all 257 articles
Browse latest View live
↧

Facts not found from world.json

Hi Guys, see files etc below, but basically it can't seem to see ANY vars in world.json... ?(File shown is subset of the full thing) Why? Chris puppet.conf [master] vardir =...

View Article


Hiera Lookup Options

My Hiera Data is as follows: --- lookup_options: site::purge::rules: merge: strategy: hash merge_hash_arrays: true I want to be able to merge any arrays for the given hiera value site::purge::rules...

View Article


Processing over hash with array - puppet 3.8

We're using puppet 3.8 (unfortunately can't move to puppet 4 yet) I've got a hash in hiera that looks something like this: hash_data: item1: field1: 'some data' array_data: - data1 - data2 item2:...

View Article

hiera.yaml and connection refused strange error

I am setting up a new master in RHEL 7. I am facing a strange error, wherein, the sudo puppet agent -t in the puppet server (it runs puppet agent as production environment) returns the following error...

View Article

what is hiera backend 'facter'?

I know hiera can be extended to other than yaml and json. But in one of the puppet setup I can see 'facter' as hiera backend. What does this mean? Is there any doc available for this? !ruby/sym...

View Article


Hiera lookup truncates value

Hello, I have defined a value in my hierarchy that contains the version number for a GPU driver. In this particular case, the driver number ends in a 0 (375.20). When I lookup the hiera value, hiera...

View Article

Arrays and hiera data

Hi, I am trying to reorganize a large monolithic hiera data file. What I have been doing is this: controller_node_ips: &CONTROLLER_NODE_IPS - 10.29.103.28 - 10.29.103.29 - 10.29.103.30 . . ....

View Article

Hiera lookup : wrong behavior

Hello dear puppeteers ! ( running puppet 4.8.1 here ) Let's say I have two YAML files build as per the following specs **file1.yaml** entry: version: "%{hiera('package-version')}" **file2.yaml**...

View Article


puppet apply -e ' notify { "test": } " ' --environment production

how can i pass value for the environment from puppet apply so that it can be used in hiera lookup (hiera config file)? currently its not working and hiera throwing error saying, it couldn't find any...

View Article


::fqdn no longer valid for vhost name in hiera file for puppetlabs-apache...

Until today, the hiera .yaml file for our CentOS 7.3-based apache server hosts were able to use "%{::fqdn}: to name a vhost (see below). However, after upgrading from puppet-agent-1.8.2-1.el7.x86_64 to...

View Article

Hiera parameter value is not received by Puppet

I'm trying to configure kerberos (using pfmooney/mit_krb5 module) and set some parameters from Hiera. The parameter is declared in Hiera as follows: mit_krb5: 'default_realm': 'DOMAIN.COM' I ran the...

View Article

hiera automatic parameter lookup does not appear to work

I'm trying to convert my manifests to use automatic lookups instead of hiera-function lookups and it does not appear to be working. Here are my hiera yaml and profile manifests: my.yaml:...

View Article

Puppet 4 not using custom facts

We are currently running a Puppet 3 system and looking to build out a new system with puppet 4. Currently it is not using our hiera because it is not reading the custom facts that we created. Our...

View Article


update hash in puppet manifest

Hello, I am using a puppet agent 3.7.1 as part of our deployment process. We also use hiera to store our configuration data. Somewhere in one of my manifest I call hiera_hash to merge my configuration...

View Article

hiera.yaml doubts about config files

My /etc/puppetlabs/puppet/hiera.yaml on master host looks like: --- :backends: - yaml :hierarchy: - "fussion/common" - "nodes/%{::trusted.certname}" - common :yaml: # datadir is empty here, so hiera...

View Article


calling_class_path and inheritance of classes

In an scenario with 2 classes: pk1::claseA and pk::1claseB with claseA like: pk1::claseA { $somevariable = hiera('myvariable') notify{$variable:} } and claseB like: pk1::claseB inherits pk1::claseA {}...

View Article

several hiera data files and resource type with many parameters

Lets say that I have a resource type with have many parameters (many could means hundred or even more). Having one resource_config.yaml file for all the resource instances of this resource type is not...

View Article


Handle Empty Arrays

I am completely stumped on this one.. I have a module like: class test ( $file, $list, ){ file { $file: ensure => 'file', content => epp('module/list.epp', {'list' => $list}), mode =>...

View Article

How to get hiera to output the literal string '%{::fqdn}'?

I would like to know what I would need to have in my yaml file to have hiera output the literal string `%{::fqdn}` instead of outputting the value of the puppet fact `fqdn`. Here is what I have tried....

View Article

module data hiera: Function lookup() did not find a value for the name

Given a module like: mymodule/ |-- data | `-- data.yaml |-- hiera.yaml |-- manifests | `-- init.pp `-- metadata.json mymodule/hiera.yaml --- version: 4 datadir: data #data_hash: yaml_data hierarchy: -...

View Article
Browsing all 257 articles
Browse latest View live