Ask Your Question
0

Can filebucket server point to the puppet master dynamically?

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

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
1

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

WhatsARanjit gravatar image

If you leave the server attribute empty, it will default to the current puppet master set in puppet.conf. https://docs.puppetlabs.com/references/latest/type.html#filebucket-attribute-server

edit flag offensive delete link more

Comments

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

mendhak gravatar imagemendhak ( 2014-08-29 05:38:17 -0500 )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

Stats

Asked: 2014-08-26 11:14:21 -0500

Seen: 270 times

Last updated: Aug 26 '14