Issue #20990 has been reported by Ray Gallagher.

----------------------------------------
Feature #20990: Add entries in the custom report API for classes, and defined 
resources as well as just resources
https://projects.puppetlabs.com/issues/20990

* Author: Ray Gallagher
* Status: Unreviewed
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* Affected Puppet version: 
* Keywords: 
* Branch: 
----------------------------------------
When writing a custom report, currently only resources are mentioned (in the 
resource_statuses collection). A manifest would likely contain a mixture of 
resources, and module class or defined resource declarations.

It would be dead handy to be able to collect the results of class and defined 
resource declarations in a manifest. 

This is most useful in the failure case. Lets say I have a manifest:

node "node1" {

package { "vim-enhanced":
    ensure => 'present'
}

mymodule::test { "testy mc test":
}

}

MyModule::test might refer to multiple resources, any of which might fail. As a 
manifest writer, I would like to see a report entry telling me if the call to 
mymodule::test failed. However at the moment, I get entries for the resources 
in the module, not the declaration in the manifest. This makes it difficult to 
collate the results coming back from multiple nodes.

(Note: I got round this myself by wrapping the call to mymodule::test in an 
intermediate class declaration in the manifest, which generated a report result)


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to