0
votes
1answer
298 views

Puppet, hiera and erb - erb would not recognize array

I have a pretty annoying error I am desperate to fix. I have a puppet module where certain things are kept in a yaml file (hiera) so that people could quickly edit just that part. The structure is ...
2
votes
2answers
382 views

Get filename for puppet template

I have a file that I'd like to reuse for a few different purposes. The file is 90% the same across uses, just slight differences. I'd rather not replicate the content across multiple files in puppet, ...
0
votes
1answer
1k views

puppet: file, template and variables

I'm trying to create a file based on templates, but I'm getting an error that the template(s) cannot be found. My directory setup is /etc/puppet/modules//templates/ Under templates, if have a ...
3
votes
2answers
360 views

Using Including Class Name in Conditionals with Puppet Templates

I'm in a situation where, for ease of management reasons, I would like to use the same config file template for two classes. I only expect a small section of the config file to be different between ...
3
votes
2answers
1k views

How to call a puppet filetemplate twice with different parameters without using define?

i try to create two different files with one template, because they only diff by one line. file { "/tmp/bootstrap-raid.sh": content => template("pxe/bootstrap.sh.erb"), } file { ...
2
votes
2answers
755 views

use local file as puppet template

I'm developer of a java software and try to find a smart way to get my app distributed and configured in our datacenter. For that, I build an rpm package and we have set up a satellite. Target OS is ...