Skip to content

VisiSB/EC2withAnsible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible

EC2 Cluster deployment with ansible

This set of playbooks will help you deploy your cluster on AWS

What you'll need:

  • AWS account
  • Configured VPC
  • A "master" node already inside the VPC with ansible installed

This project has 4 parts:

First, is deploying the instances (ec2deploy.yml)

  1. Edit the file ec2deploy.yml and add your variables
  2. Create environment variables AWS_ACCESS_KEY and AWS_SECRET_KEY
  3. Run the playbook

2nd part is the ssh key installation. It will run a set of commands and enable public_key authenticaton to the master server.

  1. Add the IPs of newly created instances to hosts file ( You can get all the private IPs with the command inside "getIP" )
  2. Run the playbook with command "ansible-playbook sshsetuo.yml --ask-pass

3rd part is my custom deployment of WordPress site. It can be edited however you want. It is made for instances inside the subnet, so the first part inside install/tasks/main.yml is for configuring networking. Add the commands and packages you want to install and run it like any other ansible-playbook

4th part is configuring the proxy I am using haproxy to route traffic to internal workers Just edit the proxy/files/proxy.cnf and add the backend nodes

About

EC2 Cluster deployment with ansible

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published