Feature #2914

Transactions should have before and after hooks

Added by Luke Kanies about 2 years ago. Updated about 2 years ago.

Status:Closed Start date:12/10/2009
Priority:High Due date:
Assignee:Markus Roberts % Done:

0%

Category:agent
Target version:0.25.4
Affected Puppet version:0.25.1 Branch:luke/tickets/0.25.x/2914
Keywords:
Votes: 0

Description

There should be support within the transactions (really, within the Configurer class that runs the transaction) that allows running before and after hooks. It just involves having settings to allow specification of the hooks, and then support in the Configurer class that looks for the hooks and runs them if set.

This is specifically to enable etckeeper integration on Ubuntu:

https://wiki.ubuntu.com/PuppetEtcKeeperVCSIntegration https://blueprints.launchpad.net/ubuntu/+spec/server-lucid-puppet-etckeeper-integration

but I think it’ll be useful for much more.


Related issues

related to Puppet - Bug #7127: prerun_command don't stop puppet on error Closed 04/15/2011

History

Updated by James Turnbull about 2 years ago

  • Assignee set to Luke Kanies
  • Target version changed from 2.6.0 to 0.25.4

As part of the Ubuntu lucid release – this is a feature required for the etckeeper integration. Thoughts on whether this should end up in .4 as a result? (aware of the irony of breaching recent discussions on fixes versus features versus show-stoppers, etc)

Updated by Luke Kanies about 2 years ago

  • Assignee changed from Luke Kanies to Markus Roberts
  • Branch set to luke/tickets/0.25.x/2914

Fixed in the tickets/0.25.x/2914 branch in my repo.

Updated by James Turnbull about 2 years ago

  • Status changed from Accepted to Closed

Pushed in commit:cdcbdc78bc399a60afaf36b6267688e72081fb6e in branch 0.25.x

Also available in: Atom PDF