Ask Your Question
0

How do I know which site.pp is being used?

asked 2014-04-21 12:12:08 -0500

JM gravatar image

updated 2014-04-23 05:27:37 -0500

Why do I have so many site.pp files on my machine? How can I tell which one is being loaded?

$ find / -name site.pp
/etc/puppet/modules/stdlib/spec/fixtures/manifests/site.pp
/etc/puppet/manifests/site.pp
/etc/puppetlabs/puppet/manifests/site.pp
/etc/puppetlabs.20140227130629.bak/puppet/manifests/site.pp
/etc/puppetlabs.20140227012929.bak/puppet/manifests/site.pp
/usr/share/doc/puppet-3.5.1/examples/hiera/site.pp
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
4

answered 2014-04-21 12:22:47 -0500

The site.pp that have been used stay into the main directory in manifestpath or manifest, if you are using puppet enterprise puppet.conf will be in /etc/puppetlabs/puppet/puppet.conf , if it is open puppet will be in /etc/puppet/puppet.conf but you can check with.

puppet master --configprint confdir

but answering your question you really can check what site.pp are been using at the moment using the follow command.

puppet master --configprint manifest
edit flag offensive delete link more
1

answered 2014-04-22 07:21:32 -0500

ffrank gravatar image

What Renan said, but for posterity, you can also exclude some options right away:

/etc/puppet/modules/stdlib/spec/fixtures/manifests/site.pp # BOGUS - this is part of a module's test suite
/etc/puppet/manifests/site.pp
/etc/puppetlabs/puppet/manifests/site.pp # LIKELY BOGUS - is /etc/puppetlabs for PE?
/etc/puppetlabs.20140227130629.bak/puppet/manifests/site.pp # BOGUS, just a backup
/etc/puppetlabs.20140227012929.bak/puppet/manifests/site.pp # BOGUS, just a backup
/usr/share/doc/puppet-3.5.1/examples/hiera/site.pp # BOGUS, an example from documentation

So once you've figured out wether your active $confdir is /etc/puppet or /etc/puppetlabs/puppet, you can tell with confidence.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-04-21 12:12:08 -0500

Seen: 176 times

Last updated: Apr 22 '14