Re: [Puppet Users] Inter-node dependency

2015-02-28 Thread Garrett Honeycutt
On 2/26/15 9:59 AM, lupindet...@gmail.com wrote: > Hello, > > I'm pondering what is the best way to approach this problem( without > MCollective). > > I have a serverA than will run a DB backup copy it over to serverB, then > serverB do restore then notify serverA for it to execute the next pha

Re: [Puppet Users] Copying a hash with changes

2015-02-28 Thread Garrett Honeycutt
On 2/28/15 1:27 PM, Tom Limoncelli wrote: > I want to copy a hash to a variable but change some settings along the way. > > For example: > > I have $haproxy::params::global_options (which is a hash) and I want > to create a copy with some changes. > > I tried this: > $global_options = $haproxy

Re: [Puppet Users] Copying a hash with changes

2015-02-28 Thread Dan White
Make a hash with the update in it and then merge them (needs stdlib) Like this: $new_hash = { 'log' => "${log_ip} local0", } $global_options = merge ( $haproxy::params::global_options, $new_hash ) https://forge.puppetlabs.com/puppetlabs/stdlib#reference • merge: Merges two or more hashes tog

[Puppet Users] Copying a hash with changes

2015-02-28 Thread Tom Limoncelli
I want to copy a hash to a variable but change some settings along the way. For example: I have $haproxy::params::global_options (which is a hash) and I want to create a copy with some changes. I tried this: $global_options = $haproxy::params::global_options += { 'log' => "${log_ip} loc