One way is to pass a "role" in via user data which gets written to a file (like /etc/role) and then have a custom fact that reads that. Then, your scripts can key off that to apply the classes for that node type.
David On Thu, Jul 21, 2011 at 5:56 AM, Oliver Beattie <oli...@obeattie.com> wrote: > Hi there, > I am trying to setup a "cluster" on Amazon EC2, using auto-scaling. I > currently have it working so that when the instances are started, they > generate a CSR, which is automatically signed by the server if it's valid by > a cron job I setup to run every minute. > However, where does one go from there? I suppose now the nodes need to be > somehow registered on the puppet master so they can receive the correct > configuration, but I'm unsure how to do this. I've read several articles > which involve essentially creating a script which modifies the manifest, but > is there a better way than this? > I'm fairly new to Puppet, so my other question would be how does one > classify instances into "roles" or similar — for instance, if I am bringing > up a webserver, can I just add it to a "webserver" group and it will be > configured as such? > Any pointers would be very much appreciated :) > —Oliver > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/puppet-users/-/AkY-XzhqaWwJ. > 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. > -- 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.