Thanks, that's very helpful. What are other users doing with autoscale to define their nodes.pp? A wildcard match? Basing replies off a custom fact like this? I'm already looking at using a non-fqdn based certname via user-data... but that general part in autoscale is a bit obscured for me.
Or, phrased differently, if Amazon is init'ing the instance creation request from one of my AMI's, how do I get a config in place on the puppet side to match the host. I'm thinking that's certname and a custom fact, but am open to other ideas. -Matthew On Mon, Jun 4, 2012 at 2:20 PM, Jeff McCune <[email protected]> wrote: > On Mon, Jun 4, 2012 at 1:01 PM, Matthew <[email protected]> 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > > -- Matthew Boeckman Director - Technical Operationsp: 303.997.0345 x832 <#SafeHtmlFilter_> [email protected] | www.craftsy.comSympoz, Inc. 2150 W. 29th Ave., Suite 400 Denver‚ CO 80211 Toll Free: (888) 979.6769 <#SafeHtmlFilter_>[image: Sympoz.com]<http://www.sympoz.com>[image: Craftsy.com] <http://www.craftsy.com> -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
