Hello I am thinking that it is better to do a cvs export of a project once, on the puppetmaster box, rather than do the same cvs export on all puppet clients, yes? If so, how does one do this? Do you run puppetd on the same box as puppetmasterd and set up the cvs export as an exec for only the node with the same hostname as the puppetmaster? Thanks Jesse Jesse Reynolds Virtual Artists Pty Ltd - http://www.va.com.au/ Phone: 08 8223 2288 Mobile: 0414 669 790
On Wed, Feb 14, 2007 at 02:03:57PM +1100, Jesse Reynolds wrote:> I am thinking that it is better to do a cvs export of a project once, > on the puppetmaster box, rather than do the same cvs export on all > puppet clients, yes?Yes.> If so, how does one do this? Do you run puppetd on the same box as > puppetmasterd and set up the cvs export as an exec for only the node > with the same hostname as the puppetmaster?On the sites where I''m using darcs, there''s no need to do this as we send our new patches directly to the puppetmaster. At sites where I''m still using bzr, my puppetmaster class includes a small script to do the update and also a cron job to execute the aforementioned script. - Matt -- Logan Shaw''s Zen of ASR Computing: free yourself of the desire to have computers work properly for this is the root of all suffering.
On Feb 13, 2007, at 9:03 PM, Jesse Reynolds wrote:> Hello > > I am thinking that it is better to do a cvs export of a project once, > on the puppetmaster box, rather than do the same cvs export on all > puppet clients, yes?It depends. I assume you mean a cvs checkout, not export, but if you''re copying all of the files to each of the clients, and nothing else goes in that directory, it might make more sense to just do the checkout on the clients. CVS and SVN are pretty good at file distribution, and it doesn''t make a lot of sense to tack Puppet on top of them if it doesn''t add any other functionality. However, most people do a checkout on the server and then compile the configs for the clients from there and then hand out individual files as necessary, so Puppet adds a lot of functionality in that case.> If so, how does one do this? Do you run puppetd on the same box as > puppetmasterd and set up the cvs export as an exec for only the node > with the same hostname as the puppetmaster?Basically, although I create a ''puppetmaster'' class and do all of the Puppet setup work there, so I can easily create more puppetmasters as necessary. -- Nothing is impossible for the man who doesn''t have to do it himself. -- A. H. Weiler --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
On 15/02/2007, at 4:13 AM, Luke Kanies wrote:> >> If so, how does one do this? Do you run puppetd on the same box as >> puppetmasterd and set up the cvs export as an exec for only the node >> with the same hostname as the puppetmaster? > > Basically, although I create a ''puppetmaster'' class and do all of the > Puppet setup work there, so I can easily create more puppetmasters as > necessary.Sorry to be thick, but I can''t see in the docs how I go about putting hosts in classes.
On 15/02/2007, at 12:28 PM, Jesse Reynolds wrote:> > On 15/02/2007, at 4:13 AM, Luke Kanies wrote: > >> >>> If so, how does one do this? Do you run puppetd on the same box as >>> puppetmasterd and set up the cvs export as an exec for only the node >>> with the same hostname as the puppetmaster? >> >> Basically, although I create a ''puppetmaster'' class and do all of the >> Puppet setup work there, so I can easily create more puppetmasters as >> necessary. > > Sorry to be thick, but I can''t see in the docs how I go about putting > hosts in classes.Sorry, found it: http://reductivelabs.com/trac/puppet/wiki/LanguageStructures#Nodes