eagleheart wrote:
> Hi,
>
> If I have a resource in a class like
>
> file { somefile:
> ensure => present,
> ... }
>
> Is there a puppet command to list any reference to it, e.g. -
> " require => File[somefile] "
> - among all the class definitions?
>
> Of course there's always unix grep, but a puppet command would be
> nicer.
You can use --graph to produce a .dot file with all resources from a
given compilation. Since references know both variables and aliases,
grep won't suffice anyways and I'm not sure even puppet could answer
this in the general case (think external nodes bringing in unknown
variables).
Regards, DavidS
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---