Hi all I''ve got a nice little VirtualBox test VLAN with a puppetmaster and 3 nodes, and I use it for trying out new classes before they go to the real puppetmaster for testing. After a few months of playing around, my poor little puppets are running all sorts of rubbish; NFS, networked syslog, mysql, apache, etc. This is entirely my fault, because I just ''unapply'' my modules from the nodes. What''s the ''best'' way to ''deapply'', or clear out a resource/class in Puppet? Do people generally just edit your manifests along the lines of change ''ensure => present'' to ''ensure => absent''? Re-Kickstarting is always an option, I suppose ... :) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I personally reinstall, I think its the cleanest way to find out the any manifests errors (e.g. dependency etc) if you have an automated build process, than it usually takes less than 10 minutes.. if you don''t have an automated build process, you might want to consider using one ;) Ohad On Tue, Aug 25, 2009 at 4:18 AM, Dick Davies <rasputnik@hellooperator.net>wrote:> > Hi all > > I''ve got a nice little VirtualBox test VLAN with a puppetmaster and 3 > nodes, and > I use it for trying out new classes before they go to the real > puppetmaster for testing. > > After a few months of playing around, my poor little puppets are running > all sorts of rubbish; NFS, networked syslog, mysql, apache, etc. > This is entirely my fault, because I just ''unapply'' my modules from the > nodes. > > What''s the ''best'' way to ''deapply'', or clear out a resource/class in > Puppet? > Do people generally just edit your manifests along the lines of > change ''ensure => present'' to ''ensure => absent''? > > Re-Kickstarting is always an option, I suppose ... :) > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Ohad Levy wrote:> I personally reinstall, I think its the cleanest way to find out the any > manifests errors (e.g. dependency etc) > if you have an automated build process, than it usually takes less than > 10 minutes..+1> if you don''t have an automated build process, you might want to consider > using one ;)+1, well said! Regards, DavidS> > Ohad > > On Tue, Aug 25, 2009 at 4:18 AM, Dick Davies > <rasputnik@hellooperator.net <mailto:rasputnik@hellooperator.net>> wrote: > > > Hi all > > I''ve got a nice little VirtualBox test VLAN with a puppetmaster and > 3 nodes, and > I use it for trying out new classes before they go to the real > puppetmaster for testing. > > After a few months of playing around, my poor little puppets are running > all sorts of rubbish; NFS, networked syslog, mysql, apache, etc. > This is entirely my fault, because I just ''unapply'' my modules from > the nodes. > > What''s the ''best'' way to ''deapply'', or clear out a resource/class in > Puppet? > Do people generally just edit your manifests along the lines of > change ''ensure => present'' to ''ensure => absent''? > > Re-Kickstarting is always an option, I suppose ... :) > > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Tue, Aug 25, 2009 at 3:18 AM, Ohad Levy<ohadlevy@gmail.com> wrote:> I personally reinstall, I think its the cleanest way to find out the any > manifests errors (e.g. dependency etc) > if you have an automated build process, than it usually takes less than 10 > minutes.. > > if you don''t have an automated build process, you might want to consider > using one ;) > > OhadOh, we do - Cobbler is amazingly at making Kickstarts bearable :) But we also plan to retrofit Puppet onto some prebuilt systems, which is obviously a bit riskier than new builds, and in those cases re-kickstarting isn''t an option. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hello,> I''ve got a nice little VirtualBox test VLAN with a puppetmaster and 3 > nodes, and I use it for trying out new classes before they go to the > real puppetmaster for testing. > > After a few months of playing around, my poor little puppets are > running all sorts of rubbish; NFS, networked syslog, mysql, apache, > etc. This is entirely my fault, because I just ''unapply'' my modules > from the nodes. > > What''s the ''best'' way to ''deapply'', or clear out a resource/class in > Puppet? Do people generally just edit your manifests along the lines > of change ''ensure => present'' to ''ensure => absent''? > > Re-Kickstarting is always an option, I suppose ... :)On my test/sandbox machines, I usually setup a single root partition on an LVM volume, then patch /sbin/mkinitrd to make it create an LVM snapshot and mount it instead of the "original" root partition. This way, I just have to reboot the system to "reset" it''s state to what it was just after the installation. I believe virtualbox has a disk snapshot functionality, which doesn''t require tinkering with mkinitrd. Marc --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---