Reputation: 13
How to use puppet or chef to config multi-servers?
For example, We need two servers to construct HA sql.
Server A need Server B's IP and username and password. Server B also need Server A's IP and username and password.
But IPs are automatic generated by AWS. And password are also randomly generated using puppet or chef.
Upvotes: 1
Views: 422
Reputation: 44244
One way to approach this is to wire chef or puppet to CloudFormation, an AWS service that allows the programmatic creation of stacks. A full answer to this question would be a full-time consulting gig, but here are some resources to get you started:
Alternatively, you could approach this problem from the other side, configuring the EC2 instances from within Chef or Puppet.
Upvotes: 1