How do you list all the files managed by `puppet`?

7,578

Ever since version 2.7.x you can do:

cat $(puppet agent --configprint resourcefile)

(source of solution)

Share:
7,578

Related videos on Youtube

Trevor Boyd Smith
Author by

Trevor Boyd Smith

Updated on September 18, 2022

Comments

  • Trevor Boyd Smith
    Trevor Boyd Smith over 1 year

    I need to make some changes to a system but I am not sure if the changes I make are managed by puppet or not. So I want to check to see if puppet is managing the files I wish to change.

    How do you list all the files managed by puppet?

  • Trevor Boyd Smith
    Trevor Boyd Smith about 6 years
    additionally you oftentimes need to run puppet agent with the --noop option to see any other changes that may be enacted.