Getting the name of the cookbook hosting an LWRP definition


#1

Hi,

is there a way to retrieve the name of a cookbook hosting an LWRP definition
from its own provider?

Just to be clear, I am not talking about cookbook_name which returns the
cookbook hosting the resource.

thanks,
david


#2

Hi,

is there a way to retrieve the name of a cookbook hosting an LWRP definition

from its own provider?

Just to be clear, I am not talking about cookbook_name which returns the

cookbook hosting the resource.

thanks,

david


#3

Not directly, though you could be sneaky and examine file. That string is generally safe to hard code though, since cookbook names don’t change much and you have to update a million things anyway. --Noah

Hi,

is there a way to retrieve the name of a cookbook hosting an LWRP definition

from its own provider?

Just to be clear, I am not talking about cookbook_name which returns the

cookbook hosting the resource.

thanks,

david