Trevor Vaughan
2008-Aug-08 15:28 UTC
[Puppet Users] Creating a define that can accept appended arrays.
Is there a way to create a define that accepts appending arrays?
I.e.:
define foo ( $bar ) { baz => $bar }
then
foo { "one": baz +> "hello" }
foo { "two": baz +> "world" }
T
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---
Luke Kanies
2008-Aug-16 21:54 UTC
[Puppet Users] Re: Creating a define that can accept appended arrays.
On Aug 8, 2008, at 10:28 AM, Trevor Vaughan wrote:> Is there a way to create a define that accepts appending arrays? > > I.e.: > define foo ( $bar ) { baz => $bar } > > then > foo { "one": baz +> "hello" } > foo { "two": baz +> "world" }This should just work -- Puppet doesn''t syntactically differentiate between builtin and defined resource types. -- SCSI is *not* magic. There are fundamental technical reasons why it is necessary to sacrifice a young goat to your SCSI chain now and then. --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---