Ask Your Question

Can filebucket server point to the puppet master dynamically?

asked 2014-08-26 11:14:21 -0600

mendhak gravatar image

I have two environments with two separate puppet masters, but they both use the same manifests. I wanted to set the filebucket server to be the puppet master hostname.

So, in manifests/site.pp, something like this:

filebucket { 'main':
  server => "${PUPPETMASTER_FQDN}",
  path   => false

I cannot hardcode that server value as the FQDNs for the two puppet masters are different.

What are some simple ways to accomplish this?

Also, If I remove that server attribute, will it default to the puppet master or does it default to each puppet agent?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-08-26 11:59:52 -0600

WhatsARanjit gravatar image

If you leave the server attribute empty, it will default to the current puppet master set in puppet.conf.

edit flag offensive delete link more


Thanks, I removed the server and it worked just fine.

mendhak gravatar imagemendhak ( 2014-08-29 05:38:17 -0600 )edit

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-26 11:14:21 -0600

Seen: 282 times

Last updated: Aug 26 '14