Add class to set noop on various puppet resources
authorDan Prince <dprince@redhat.com>
Fri, 3 Jul 2015 21:01:07 +0000 (17:01 -0400)
committerDan Prince <dprince@redhat.com>
Fri, 3 Jul 2015 21:16:07 +0000 (17:16 -0400)
commite260543f903eea0d14c2b7ddd5e1480d9042759d
tree81d5ff0f474e57b695f159b15a14361158ca266c
parentd8b609878f3fe90a417faae251925cf5a8e54a23
Add class to set noop on various puppet resources

This patch adds a new tripleo::noop class that can be
used to help switch all resources of a given type
to noop mode. The class does this via Puppet resource
collectors to enable the noop metaparam on all resources
of the specified type.

When a resource is in noop mode no action
will get taken (however puppet stdout will log information
about what would happen if noop were removed).

The motivation for this patch is to be able to do something
like this and run puppet to configure select resources
(like only config files):

 class {'tripleo::noop':
   file => false
 }

It is important to note that when tripleo::noop is used all common
resources default to noop mode.

This could be used alongside docker containers to provide
a mechanism to pre-configure all related config files for
a set of docker containers ahead of time.

Change-Id: I67f9dbbf33a2d6bcee5005ae0b6b1aa7091039ad
manifests/noop.pp [new file with mode: 0644]