create_vg that creates an lvm volume group. An input to this is
obviously the list of physical disks. In a normal programming
language, I'd put the identification of the physical disks into one
function, and pass the result of that to create_vg().
However, since a define in puppet can't return a value (can it?), you
don't have many options unless you want to set it as a fact with
fact-add, which bothers me, because your effectively than accumulating
a list of global variables that may not need to be variable.
So, your effectively left with putting the logic that determines the
physical disks _inside_ create_vg(). No? Seems so... non functional!
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to email@example.com.
To unsubscribe from this group, send email to firstname.lastname@example.org.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.