This provides a full audit trail for any parameter on any
resource Puppet can manage. Just use:
file { "/my/file": audit => [content, owner] }
And Puppet will generate an event any time either of
those properties change.
This is a bunch of preparation and refactoring commits, and then a
relatively straightforward commit that dds auditing the the resource
harness.
lib/puppet/application/apply.rb | 2 -
lib/puppet/configurer.rb | 1 -
lib/puppet/property.rb | 16 ---
lib/puppet/resource/catalog.rb | 4 +-
lib/puppet/transaction.rb | 10 +-
lib/puppet/transaction/change.rb | 16 +++-
lib/puppet/transaction/event.rb | 2 +-
lib/puppet/transaction/resource_harness.rb | 67 ++++++++++++-
lib/puppet/type.rb | 137 ++++++++-------------------
lib/puppet/util/storage.rb | 12 +--
spec/integration/transaction.rb | 14 +++-
spec/spec_helper.rb | 1 +
spec/unit/configurer.rb | 27 ++----
spec/unit/resource/catalog.rb | 9 ++-
spec/unit/transaction.rb | 79 ++++++++++++----
spec/unit/transaction/change.rb | 26 +++++
spec/unit/transaction/event.rb | 2 +-
spec/unit/transaction/resource_harness.rb | 141 +++++++++++++++++++++++++++-
spec/unit/type.rb | 45 +++++++++
spec/unit/util/storage.rb | 24 +----
test/ral/manager/type.rb | 50 ----------
test/util/storage.rb | 20 ----
22 files changed, 433 insertions(+), 272 deletions(-)
--
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.