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

Hiera -- can't convert Fixnum into String

I'm trying to use a trick similar to the one here https://docs.puppet.com/hiera/1/variables.html where (instead of a fact) I define a variable in my node definition, and then use the value of that...

View Article


Get a yaml from external source and apply it

In my IT team, we use an external tool to describe and manage a tree of directories with ownership and permissions. This tool is able to provide the description of the directories in a custom format...

View Article


Hiera custom backend not working

Hey, I'm trying to write a custom hiera backend for mongodb with PE2017-2. I found some working examples with hiera v3 but I'd like to use hiera v5. So I've just wrote a kind of "hello world" for my...

View Article

Hiera 5 and Puppet 4.10

Hi, The docs seem to indicate that Hiera 5 is included with Puppet 4.9+. But the version that is included seems to be 3.3.2. What is up with that, and is there a way to install Hiera 5? I understand it...

View Article

I would like to apply certain configs to certain GCE instance tags

Hi, I have just started with GCE. I noticed that you can specify certain tags to your instances. I would like that for example all instances that are tagged with the tag "webserver" will get the...

View Article


Configure GCE instances after GCE-tags with hiera

Hi, I have just started with GCE. I noticed that you can specify certain tags to your instances. I would like that for example all instances that are tagged with the tag "webserver" will get the...

View Article

Data lookup() via redis hiera-backend fails on puppet 5

Hi all, I am investigating a possible move from puppet open source 3.8.x to puppet 5 and I was trying out the new application and services. I solved almost all the problems until I hit a problem with...

View Article

How to create users with hiera 5?

I'm new to Hiera and would like to manage users on ubuntu, especially passwords and ssh keys with hiera. I can't find any specific documentation anywhere and wondering what would be the best practice...

View Article


How should I structure my hiera for systemd limits?

I am trying to use https://github.com/camptocamp/puppet-systemd. I want to setup some systemd limits for a service so I have included ... include ::systemd ... in my manifest. And I have this hiera...

View Article


Hiera variable interpolation

I'd like to get values from a specific hiera data file depending on a puppet variable. But I'm not sure I can do it. Let me explain in detail. Imagine I have a puppet dsl file like this: define...

View Article

Simple top-level yaml hash not merging

I have the following hiera definitions: # hiera.yaml :backends: - yaml :yaml: :datadir: /home/supermathie/puppettest :hierarchy: - local - global # global.yaml containers: auth-proxy: image:...

View Article

Set File content via Hiera

Hi, I am looking for the syntax to set the content for a File resource from hiera. Specifically I want to set the template being used: # Puppet class test ( $file_content = undef, ){...

View Article

use hiera to set default class parameters in the module - but don't make them...

I like the idea to set class parameter defaults in a hiera yaml file included in the module. *But this allows users to change the class defaults from using any yaml file in the hierarchie.* I don't...

View Article


Is there an equivalent to node-config-yml inheritance / overriding in hiera...

I was coding a configuration in YAML for node.js and needed to override the defaults of a configuration, so I added the node-config-yml library to my project and added the following to `index.js`:...

View Article

How to escape single quotes in hash2yaml

I would like a token value in my config file to display exactly like the below: value: 'fhebrenert''retuihrney' Note that this token value contains two single quotes next to each other, but also must...

View Article


How to get hiera yaml file to output null

I've googled this and can't find anyone with a similar problem. My parameter file for my application needs to have exactly the following: value: null Note I do not want quotes around the null. I have a...

View Article

Hiera: Unable to pass parameters to nodes after declaring class (hiera_include).

Hi, I'm trying to move a class declaration out of the main manifest and use Hiera instead, on a new Dev environment we recently set up. I'm using hiera\_include('classes'), as I am looking at using...

View Article


hash2yaml to return an empty string

I would like a variable in my paramters.yml file to be empty, that is value: I am using hash2yaml to convert my hiera file into the config parameters.yml file, and I can't find a solution to get the...

View Article

passing array element to hiera lookup as a key

My hiera currently looks like this: testmodule::install::certificates: test1.domain.com: certificatefile: 'certificate1.crt' certificatepass: 'testpass1' test2.domain.com: certificatefile:...

View Article

Puppet standalone and hiera

I'm running Puppet as standalone (i.e. with `puppet apply`) and have some modules that I want to configure with hiera. But I can't figure out how to make hiera lookup values that are *not* stored in...

View Article
Browsing all 257 articles
Browse latest View live