On Wed, Feb 26, 2014 at 8:26 AM, Felix Frank <
felix.fr...@alumni.tu-berlin.de> wrote:

> Hi,
>
> On 02/26/2014 03:18 PM, Kenton Brede wrote:
> > vmw_tools_purge:
> >     - 'PURGE'
>
> not that you are defining an array here, not a string. That would look like
>
> vm_tools_purge: 'PURGE'
>
> > $vmw_tools_purge = hiera('vmw_tools_purge')
> > notify { $vmw_tools_purge: }
>
> This works because puppet helpfully converts the array to a string by
> concatenating all elements.
>
> > if $vmw_tools_purge == 'PURGE' {
>
> This would not work the same way, though. You may verify whether
>
> if $vmw_tools_purge == [ 'PURGE' ]
>
> does in fact work, but it would be a funny construct anyway. It should
> be fixed in YAML.
>

Doh!  That was it, thanks.

-- 
Kent Brede

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CA%2BnSE39%2BVBSFp5UMWhw2B9TckqqDcQ3TAJs6oG_tuVSWTj8_aQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to