{"id":13572260,"url":"https://github.com/vspiewak/ansible-mesosphere","last_synced_at":"2025-04-22T22:41:37.154Z","repository":{"id":33191391,"uuid":"36833382","full_name":"vspiewak/ansible-mesosphere","owner":"vspiewak","description":"Installation of Mesosphere stack on AWS EC2 using Ansible","archived":false,"fork":false,"pushed_at":"2015-11-07T19:35:10.000Z","size":174,"stargazers_count":12,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T19:34:31.661Z","etag":null,"topics":["ansible","aws","marathon","mesos","sensu"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vspiewak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-03T22:08:26.000Z","updated_at":"2024-04-10T12:19:30.000Z","dependencies_parsed_at":"2022-09-12T17:51:44.928Z","dependency_job_id":null,"html_url":"https://github.com/vspiewak/ansible-mesosphere","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vspiewak%2Fansible-mesosphere","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vspiewak%2Fansible-mesosphere/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vspiewak%2Fansible-mesosphere/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vspiewak%2Fansible-mesosphere/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vspiewak","download_url":"https://codeload.github.com/vspiewak/ansible-mesosphere/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250337281,"owners_count":21414092,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","aws","marathon","mesos","sensu"],"created_at":"2024-08-01T14:01:18.214Z","updated_at":"2025-04-22T22:41:37.137Z","avatar_url":"https://github.com/vspiewak.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"Ansible Mesosphere\n==================\n\nInstall a Mesosphere stack on EC2 :\n\n  * Zookeeper cluster\n  * Mesos cluster\n  * Marathon\n  * Sensu for alerting/monitoring\n  * GitLab for hosting code\n\n\nInstall Ansible\n---------------\n(On OSX for instance...)\n\n    sudo easy_install pip\n    sudo -H pip install --upgrade pip\n    sudo -H pip install --upgrade boto\n    sudo -H pip install --upgrade ansible\n\n\nConfigure your AWS Credentials\n------------------------------\n\n    export ANSIBLE_HOST_KEY_CHECKING=False\n    export EC2_REGION=eu-west-1\n    export AWS_ACCESS_KEY=...\n    export AWS_SECRET_KEY=...\n    export AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY\n    export AWS_SECRET_ACCESS_KEY=$AWS_SECRET_KEY\n\n\nConfigure your EC2 pem file\n---------------------------\n\n    export PEM_NAME=\u003caws_pem_name\u003e\n    export PEM_PATH=~/.ssh/\u003caws_pem_name\u003e.pem\n\n\nConfigure EC2 instances tags\n----------------------------\n\n    export CLIENT=company\n    export ENV=dev\n\n\nConfigure your VPC\n------------------\n\nUse the default VPC or create one with a public subnet\n\n    export VPC_ID=\u003cvpc_id\u003e\n    export SUBNET_ID=\u003cpublic_subnet_id\u003e\n\n\nCreate EC2 instances\n--------------------\n\n    ansible-playbook -i inventory/local playbooks/create-ec2.yml\n\n\nConfigure EC2 instances\n-----------------------\n\n    ansible-playbook -i inventory/ec2.py playbooks/site.yml\n\n    \u003cor\u003e\n\n    ansible-playbook -i inventory/ec2.py playbooks/zookeeper.yml\n    ansible-playbook -i inventory/ec2.py playbooks/mesos.yml\n    ansible-playbook -i inventory/ec2.py playbooks/marathon.yml\n    ansible-playbook -i inventory/ec2.py playbooks/gitlab.yml\n    ansible-playbook -i inventory/ec2.py playbooks/sensu.yml\n\n\nYou can browse\n--------------\n\n  * `http://\u003cmesos_master_url\u003e:5050`\n  * `http://\u003cmarathon_url\u003e:8080`\n  * `http://\u003csensu_url\u003e:3000`\n  * `http://\u003cgitlab_url\u003e`\n\n\nDeploy an app on marathon\n-------------------------\n\n    curl -XPOST -H 'Content-Type: application/json' http://\u003cmarathon_url\u003e:8080/v2/apps -d @sample.json\n\n\nTerminate EC2 instances\n-----------------------\n\n    ansible-playbook -i inventory/ec2.py playbooks/terminate-ec2.yml\n\n\n\nTODO\n----\n\n  * Configure Sensu alerting (via mail)\n  * Configure Sensu checks for docker\n  * Configure Marathon in HA mode\n  * Configure Chronos (?)\n  * Install Chaos Monkeys\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvspiewak%2Fansible-mesosphere","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvspiewak%2Fansible-mesosphere","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvspiewak%2Fansible-mesosphere/lists"}