0
votes
1answer
146 views

Puppet variables, defaults, merging and a template

During the task of writing a module, I found out that I have a huge amount of configurable parts. To better organize the module (for the sake of read- and maintainability), I have chosen to split ...
3
votes
1answer
155 views

Building up puppet variable based on conditions

So I'm getting adjusted to the immutable variables in puppet, now looking for some advice, or clarification to whether I'm already on the right track. I have a directory I'd like to sync, but ...
1
vote
2answers
351 views

Puppet generating variables inside script

I'm migrating a set of bash scripts that deploy a server to Puppet. Almost all of the functionality has been moved into Puppet, but I can't see how to migrate one bit of the bash script that does the ...
2
votes
2answers
439 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, ...
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
3answers
2k views

How to set variables with basenode (in nodes.pp)?

I'm trying Puppet and it seems to be good. My question is very easy but I can't answer. I have a file "node.pp" : node basenode { include "dns" # include "ntp" } node ...
2
votes
4answers
674 views

Placement of Variables in Puppet module

I've got a puppet module to setup several Gigaspaces PU's. Each of these have quite a few variables to be placed within the configuration file templates. We're also using several different ...
4
votes
1answer
12k views

Puppet: Referencing variables from a define in a template

I have the following class and definition in puppet: $certDirectory = "/var/lib/ssl/certs" class openssl { package { "openssl": ensure => latest } file { "openssl": path => ...