On Wed, Jan 21, 2009 at 4:31 AM, Dan Bode <[email protected]> wrote:
> Hi all,
>
> I need to fulfill a requirement for change rollbacks with puppet. (where the
> original version of files is not necessarily managed with puppet)
>
> Is there something in place that I can use as a starting point here?
>
> I wanted see what the future plan is for this, so that I can gauge how much
> effort I should put into doing something custom. (if there is a report DB
> coming out soon, maybe I will wait)
>
> 1. Requirement - be able to rollback any configuration changes made by
> puppet
>
> I can use a mix of procedure and scripting, but I would rather have scripts
> do everything (and let puppet rollback the changes like they were regular
> config)
>
> 1. Approach:
>
> - store reports with
>
> report = true
>
> -create a comand line app with the following functionality
>
> *list         = for a host, show a list of all of the reports, along with
> date, and an index (most recent = 1).
> *id          = for a given report index, show a list of all file changes.
> *rollback = for a given report index(default is most recent), rollback all
> changes to the host.
>
> -rollback
>
>  *Initially, this will just dump the files in a defined dir location, where
> an admin must push them out manually
>  *create the same files that puppet created for config changes, push these
> files out using puppet, create a report of the changes that are being
> reverted.
>
> Is there a good starting place with existing code for this?
>
> Also, does the approach make sense? If so, I have some follow up questions
> about how to use some of the puppet classes.
>
> Is this something that would be useful for the community(maybe my boss would
> let me contribute it)? Maybe I could find some time to integrate it with
> PuppetShow later this year.

Not sure how the best to do this would be, but the file bucket gives
you a solid stating place. With the file bucket turned on, and I
believe it is by default, you automatically get a copy of the
pre-puppet modified files. That should help greatly with setting up a
rollback procedure, especially for pre-puppettized files. I am not
sure how many changes stay in the bucket though. The reports  feature
provides most of the information you need already. I would also look
at puppetview as it is a much simpler report viewer than puppetshow.

Evan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to