Re: [Puppet Users] "extending" hiera data?

2016-08-13 Thread Robert Poulson
e breaking out all > your logic into profile modules can be quite verbose and time-consuming. > Sometimes you will get a profile class that does nothing but install a > single package (e.g. if you have multiple profiles that require a single > Apache module). That's OK. It will be MUCH

[Puppet Users] "extending" hiera data?

2016-08-11 Thread Robert Poulson
Hey List, during the last weeks I finally managed to spend some quality time :) with Puppet and I deepened my knowledge a bit: learned some ruby, wrote my first custom ruby facts, used hiera in my latest module... it's been fun. There is one concept with Hiera though which is still unclear for me

Re: [Puppet Users] Re: Puppet .... ruby regex

2016-08-04 Thread Robert Poulson
> > $pp_shortcertname= "${trusted['certname']}".match(/([^.]+)\./)[1] > > not sure I fully understand why this works and [] doesn't. > > Not 100% sure I understand what the [1] does ! > The parentheses are for capturing the matching text, and \1 for re-using it as a backreference; [1] outside of t

Re: [Puppet Users] merge hashes and create_resources

2016-06-06 Thread Robert Poulson
7; }, > [possibly input4... inputN] > } > $input_merged = merge($input_base, $input_node) > file { 'input_merged_file': > content => template("template_that_uses_input_merged") > } > > #Uses $port and $component params in individual File resources > define inp

[Puppet Users] merge hashes and create_resources

2016-06-05 Thread Robert Poulson
Dear List, I've been using Puppet for over a year now and I'm quite enjoying it. I've learned some stuff but there is of course always room for improvement. Now I have a task which needs a nicer solution than I'm currently capable of. I have a hash of items with to key/value pairs, which is *the

Re: [Puppet Users] ntp keys - trusted, requestkeys

2015-03-10 Thread Robert Poulson
> > So the ntp.conf should only contain the key identifiers pointing at the > /etc/ntp.keys which won't be changed by Puppet. > Okay, it works exactly like this. I misinterpreted the description, one has to specify the key identifiers - was misleading but probably it's just me. So I can't edit t