Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ansible Semaphore spike #832

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions prov-shit/ansible/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ scala_version: scala-2.11
foxcomm_domain: foxcommerce.com
logrotate_dir: /etc/logrotate.d
appliance_prefix: appliance
semaphore_env: undefined

# Marathon defaults
marathon_retries: 60
Expand Down
20 changes: 20 additions & 0 deletions prov-shit/ansible/semaphore_marathon.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---

- name: Provision Stage Frontend
hosts: all
become: true
vars:
user: "{{ ansible_user | default(lookup('env', 'USER')) }}"
api_server: appliance-10-240-0-3.foxcommerce.com.foxcommerce.com
self_host: appliance-10-240-0-3.foxcommerce.com.foxcommerce.com
ashes_server_name: appliance-10-240-0-3.foxcommerce.com.foxcommerce.com
storefront_server_name: appliance-10-240-0-3.foxcommerce.com.foxcommerce.com
with_base_seeds: true
roles:
- { role: dev/marathon }
- { role: dev/marathon, only_consumers: true }
- { role: dev/balancer }
- { role: demo/balancer }

handlers:
- include: roles/base/consul_agent/handlers/main.yml
14 changes: 14 additions & 0 deletions prov-shit/ansible/semaphore_migrate_phoenix_db.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---

- name: Migrate DB
hosts: all
become: true
vars:
user: "{{ ansible_user | default(lookup('env', 'USER')) }}"
download_flyway: false
phoenix_db_name: phoenix_development
pre_tasks:
- name: View Semaphore Environment
debug: msg={{semaphore_env}}
roles:
- { role: prod/migrate_phoenix_db }