1 package System::Introspector::Probe::Puppet;
4 use System::Introspector::Util qw(
11 default => sub { '/var/lib/puppet/state/classes.txt' },
14 has resources_file => (
16 default => sub { '/var/lib/puppet/state/resources.txt' },
22 classes => $self->_gather_classes,
23 resources => $self->_gather_resources,
27 sub _gather_resources {
29 return transform_exceptions {
30 my @lines = output_from_file $self->resources_file;
32 return { list => [ map {
42 return transform_exceptions {
43 my @lines = output_from_file $self->classes_file;
45 return { list => \@lines };
55 System::Introspector::Puppet - Gather puppet agent information
59 Reads the C<classes.txt> and C<resources.txt> provided by puppet.
65 The path to the C<classes.txt> puppet file.
66 Defaults to C</var/lib/puppet/state/classes.txt>.
70 The path to the C<resources.txt> puppet file.
71 Defaults to C</var/lib/puppet/state/resources.txt>.
77 =item L<System::Introspector>