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
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
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
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