On Mon, Mar 8, 2010 at 1:54 PM, Michael DeHaan <[email protected]> wrote: > These two patches are a basic attempt to enhance Puppetrun to support > shell globs. > > This is still rough. There are some obvious things wrong yet that I > need to fix: > > * Hard coded path to /var/lib/puppet > * Only supports one database source (the filesystem) > * -a still doesn't know how to use the filesystem. > > In other words, a simple refactor/cleanup of puppetrun is something > I'm probably going to do as a course of this. > I want to abstract out the sources of 'what nodes we have' in a better way. > > Assuming we make 'puppetrun' more part of the app, is there a better > place to put things than 'util' or are there resources I should > be using to do things like 'get the list of available nodes that have > checked in' versus globbing the directory? > > (Early patches attached, don't apply them yet) > > Another thing I'd like to do is also fix "ralsh -h" so we can query > things via ralsh remotely using the puppetrun infrastructure. > If we do that, and also allow ralsh to use the "Exec" resource, we > have essentially recreated Func in the context of Puppet, and can > do clever things like rapid inventory collection (live) even without > storeconfigs. > > --Michael >
I'm also extending this to support arbitrary groups of systems, so you can do something like: [webservers] web*.example.org *-web.example.com [dbservers] db*.example.org backup.example.org puppetrun --hostgroups webservers It seems this creates a new concept of a 'hostgroupfile', which seems like it should live in /etc/puppet/hostgroups.conf or equivalent. However, dashboard also has a concept of groups. So this seems to imply puppetrun gets a parameter called --datasource that is either 'filesystem' or 'dashboard', for starters, and eventually we could do 'ldap'. --Michael -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.
