Ask Your Question

How to test for dependencies on the compiling puppet node

asked 2014-08-25 07:14:41 -0600

zakdoek gravatar image

Is it possible to test, in a puppet manifest, for a dependency on the compiling node (the master or the applying node in case of a masterless setup)?

I've written a profile manifest for base nodes in my network. All nodes should include this profile, including the puppet masters. In this profile, some parts use puppetdb. This gets installed via a puppetmaster profile manifest. I need a way to conditionally skip the parts of the base profile manifest that uses puppetdb, until it is installed.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2014-08-26 12:31:00 -0600

WhatsARanjit gravatar image

All functions including generate(), file(), or template() occur on the master during compilation. Hopefully that works out for you!

edit flag offensive delete link more

answered 2014-08-25 07:41:50 -0600

zakdoek gravatar image

updated 2014-08-25 07:42:33 -0600

Received this answer on stackoverflow, utilizing the generate() function.

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


Asked: 2014-08-25 07:14:41 -0600

Seen: 64 times

Last updated: Aug 26 '14