On Oct 10, 2008, at 11:56 AM, Simon J Mudd wrote: > > Hello all, > > I've been using puppet for a while now and have an issue I've not > seen clearly answered. One of the issues I want to address in puppet > is to manage LVM, the volume groups and logical volumes on a series > of servers. > > Starting from a small base configuration I would like to configure the > logical volumes on the server. > > However this doesn't seem to be a thing that puppet knows about > directly. > My first thought is to create some custom facts which store the volume > group names and within each volume group the logical volumes. This is > not ideally stored as a couple of scalar values.
What are you going to be doing with the facts? Wouldn't you want to just declaratively manage the whole set of groups and volumes and such? It's not like you can iterate over the groups in Puppet or anything. > > So how should I store this? Facter would seem to be the best thing to > adjust adding some custom facts but from what I can see all facter > facts > are single scalar values. > > So am I approaching the problem incorrectly? My initial thought is > that I'd like to populate some sort of variable volume_group_info as a > hash of hashes, the first hash being indexed on the volume group names > and the second on the logical volume group names in each volume group. The problem is that Puppet isn't really set up to use this hash of hashes to make resources, and really, what's the value of doing so anyway, since you'd just be telling Puppet to manage what it's already discovered, right? -- Due to circumstances beyond your control, you are master of your fate and captain of your soul. --------------------------------------------------------------------- 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---