> 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.
I use the certname (=FQDN) to match the right configuration in nodes.pp. The right name is set at boot-time by the cloud orchestrator (Scalr). While Puppet knows only the configuration it gives to each role (webserver or mysql server or mysql slave...), the orchestrator knows the exact status of the farm (how many instances of each role). So if you have a farm composed by two autoscaling "roles", web & db, i change the hostname from ec2-xx-xx-xx-xx to something like: - myservice-web01 - myservice-web02 match myservice-web0[0-9] in site.pp - myservice-web03 - myservice-db-master match myservice-db-master in site.pp - myservice-db-slave01 - myservice-db-slave02 match myservice-db-slave0[0-9] in site.pp - myservice-db-slave03 A simple advantage of this approach is that I don't need to build, pay and maintain a customized AMI for each role in each farm, I can simply start from a fresh OS at boot time. -- 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.