Re: [Puppet Users] Local variables lost outside of .each loop

2017-01-30 Thread Martin Alfke
AFAIK all variables inside a lambda are “private”: https://docs.puppet.com/puppet/latest/lang_lambdas.html#lambda-scope > On 30 Jan 2017, at 21:49, Justin Diana wrote: > > Hey guys, > > I'm trying to loop through a hash to set a variable and then use it outside > of the loop. For some reason

Re: [Puppet Users] Problem in looking up key value from hieradata

2017-01-30 Thread Maruti Gangumolu
Thanks you sir! It worked great:) On Mon, Jan 30, 2017 at 6:33 PM, Bart-Jan Vrielink wrote: > Hello, > > > There are a few issues with your example that need to be fixed, to make it > work. > > As a start, you need to prefix certain keywords in /etc/hiera.yaml with a > colon (:). I have tested u

[Puppet Users] Local variables lost outside of .each loop

2017-01-30 Thread Justin Diana
Hey guys, I'm trying to loop through a hash to set a variable and then use it outside of the loop. For some reason, although my debug shows the variable is getting set to the correct value, it's NULL as soon as I move up a layer in the nested loop: $lb_info.each |$k, $v| { $myaddress

Re: [Puppet Users] Re: Puppet Actions in Parallel?

2017-01-30 Thread Henrik Lindberg
On 30/01/17 12:58, Michael Shaw wrote: The very clear use case for me is in the puppet management of infrastructure. Take the case of puppet being used to automate the creation of a database server. The Command to initiate the creation takes around 2 seconds to complete. The process to actually

Re: [Puppet Users] puppetlabs apt module - jenkins repository

2017-01-30 Thread Lowe Schmidt
What happens if you have repos empty? repos => '' -- Lowe Schmidt | +46 723 867 157 On 29 January 2017 at 18:06, Romgo wrote: > Hello, > > I'm trying to use this module to configure my debian server. > I have one issue with the jenkins repository, > > I use the following configuration : > > d

RE: [Puppet Users] Problem in looking up key value from hieradata

2017-01-30 Thread Bart-Jan Vrielink
Hello, There are a few issues with your example that need to be fixed, to make it work. As a start, you need to prefix certain keywords in /etc/hiera.yaml with a colon (:). I have tested using this setup: --- :backends:   - yaml :hierarchy:   - node/%{::fqdn}   - "%{::environment}"   - global

Re: [Puppet Users] Re: Puppet Actions in Parallel?

2017-01-30 Thread Michael Shaw
The very clear use case for me is in the puppet management of infrastructure. Take the case of puppet being used to automate the creation of a database server. The Command to initiate the creation takes around 2 seconds to complete. The process to actually create the database can take 5 minute

[Puppet Users] Can we install puppet agent on multiple host machine using remote machine (considering puppet master is already installed on the remote machine)?

2017-01-30 Thread Patil Jyotsna
Can we install puppet agent on multiple host machine using one remote machine (considering puppet master is already installed on the remote machine)? -- The information in this message may be proprietary and/or confidential, and protected from disclosure. If the reader of this message is not t

[Puppet Users] puppetlabs apt module - jenkins repository

2017-01-30 Thread Romgo
Hello, I'm trying to use this module to configure my debian server. I have one issue with the jenkins repository, I use the following configuration : deb http://pkg.jenkins.io/debian-stable binary/ So I declare on my node : apt::source { "jenkins-${lsbdistcodename}": location => 'http://pk

Re: [Puppet Users] Re: how do you name and group your data in hiera?

2017-01-30 Thread Robert
Hi Rob, thank for the feedback. So you also merge values accross different Hiera tiers. I will probably also use this in my modules and there will be cases where this will be the right solution for what I want to achieve. But merging values from the _same tier_ seems not be possible then. Like p