Skip to content

Add mongo-seed-db k8 job. #706

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

Merged
merged 7 commits into from
Jul 7, 2017
Merged

Add mongo-seed-db k8 job. #706

merged 7 commits into from
Jul 7, 2017

Conversation

tosih
Copy link
Member

@tosih tosih commented Jul 7, 2017

  • Added mongo-seed-db k8 job

@tosih tosih requested a review from thejsj July 7, 2017 17:08
@tosih
Copy link
Member Author

tosih commented Jul 7, 2017

To deploy job:

ansible-playbook -i /Users/sohailahmed/Runnable/devops-scripts/environments/runnable-self-hosted-2/inventory -e @/Users/sohailahmed/Runnable/devops-scripts/environments/runnable-self-hosted-2/main.yml --vault-password-file /Users/sohailahmed/.vaultpass -e git_branch=v12.10.12 /Users/sohailahmed/Runnable/devops-scripts/ansible/mongo-seed-db.yml


container_run_args: npm run migrate-up

container_envs:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be better to just do this:

envs:
  - name: IS_QUEUE_WORKER
    value: "true"
  - name: ROLLBAR_KEY
    value: "{{ api_workers_rollbar_key | default('ansible_undefined') }}"

container_envs: "{{ api_base_container_envs + envs }}"

Not sure if that would work.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not going to do, causes more issues.

---
- hosts: mongo
vars_files:
- group_vars/alpha-mongo-seed-db.yml
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add this to ./ansible/single-host-part-2.yml

@tosih tosih force-pushed the add-mongo-seed-job branch from 634b872 to a7bfe75 Compare July 7, 2017 17:28
@tosih tosih force-pushed the add-mongo-seed-job branch from 5bdc3fc to 1045234 Compare July 7, 2017 22:12
@tosih tosih merged commit 05679e7 into self-host-part-2 Jul 7, 2017
@tosih tosih deleted the add-mongo-seed-job branch July 7, 2017 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants