On Mon, Jun 4, 2012 at 1:01 PM, Matthew <matt...@sympoz.com> wrote:
> I'm in the same boat here. I have a puppet master server that provides
> config to a few different classes of machines. I'm struggling with a way to
> have instances from one autoscale group come up, and attach to a
> "webgroup-a" or "webgroup-b" puppet configuration.
>
> Is there a way for a puppet client to pass along some bit of information to
> the master, other than a hostname, to identify itself as having booted into
> a particular class, and thus to receive particular configuration?

This sounds like a custom fact.

If you're doing this from a script a quick and dirty (but not ideal
long term since it's not clear where this fact came from) is to simply
export an environment variable on the agent:

export FACTER_FACT_AUTOSCALE_GROUP=webgroup-b
puppet agent --test

When the puppet agent connects to the master there will be a fact
named fact_autoscale_group with the value of "webgroup-b".

I've used this before to signal to the master how the agent should
configure a new Puppet master worker behind a load balancer.

-Jeff

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to