How do I use "puppet resource" to get data about IIS?

asked 2015-09-17 09:56:04 -0600 gravatar image

It seems that puppetlabs/iis doesn't support "puppet resource". Or maybe the how is just missing from the docs? I browsed the code a bit and can't see any indication that it can do that. Can someone corroborate? Any plans to fix that?

I think that puppetlabs provided modules should support some sort of "minimum standard" functionality?

Thanks, David Thornton

edit retag flag offensive close merge delete


What syntax have you tried, and what errors are you getting in return?

Ancillas gravatar imageAncillas ( 2015-09-17 22:40:13 -0600 )edit

I don't think the puppet resource command will give you information about IIS from the module, but you should be able to use it on the individual resources used in the module's classes, such as file resources, or acl resources.

Ancillas gravatar imageAncillas ( 2015-09-17 22:44:37 -0600 )edit

How do I find out that the individual resources are? gravatar ( 2015-09-18 15:58:57 -0600 )edit

They're in the module code files. The `puppet resource` command will basically show you the same thing you'll see in the code, but with the actual parameter values used on the server, so probably not useful for your end goal.

Ancillas gravatar imageAncillas ( 2015-09-21 15:40:44 -0600 )edit

An example of a Puppet resource is in the install.pp file, which has two resources: Dism['IIS-WebServer'] and Service['w3svc']. The former uses the puppetlabs/dism module to install the IIS feature via DISM.

Ancillas gravatar imageAncillas ( 2015-09-21 15:43:04 -0600 )edit