ken.chen
ken.chen

Reputation: 13

Use puppet or chef to config two db servers (HA) on AWS

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

Answers (1)

Christopher
Christopher

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:

CFN with Puppet.

CFN with Chef.

CFN docs.

Alternatively, you could approach this problem from the other side, configuring the EC2 instances from within Chef or Puppet.

Upvotes: 1

Related Questions