Dear all, I would like to get the directory of the classfile. But I would like to use the puppet config print classfile.
Currently my scripts looks like that. require 'facter' Facter.add(:puppet_classes) do setcode do dir = Facter.value('puppet_vardir') lines_array = IO.readlines("#{dir}/classes.txt") puppet_classes = lines_array.sort.join(",") puppet_classes.delete("\n") end end I found require 'puppet' puts %x{puppet config print classfile} But I donĀ“t understand how to insert that in my script. Can somebody please help me? Andreas -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/c9f06cde-27ed-478d-a086-f366f2343260%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.