Skip to content

adampats/ansible-mesos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-mesos

A basic playbook to stand up a 3-node mesos + marathon + zookeeper cluster.

How to run

A sample terraform file is included (example.tf), it utilizes EC2 spot instances because they are cheap.

# See what you are going to deploy
terraform plan

# Deploy in AWS
terraform apply

Then populate your Ansible inventory file, hosts, with the hostnames - here is a quick bash copy/paste-able output:

terraform show | grep -i public_dns | awk -F"= " '{print $2}'

Then run Ansible:

# validate connectivity
ansible -i hosts mesos -u ubuntu --private-key ~/.ssh/adamkeys -m ping

# run the playbook
ansible-playbook -i hosts site.yml -u ubuntu --private-key ~/.ssh/adamkeys

Note: The -u and --private-key options might not be necessary depending on your ansible.cfg setup)

Then hit mesos or marathon via web browser on any of the nodes (it should redirect you to the currently elected master):

Mesos: http://host1:5050

Marathon: http://host1:8080

About

Quick mesos cluster bootstrap

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages