Skip to content
Snippets Groups Projects
Commit 4e2601bd authored by Ronja Koistinen's avatar Ronja Koistinen
Browse files

Use inventory files after all

parent 928f4791
Branches
No related tags found
No related merge requests found
......@@ -2,4 +2,5 @@
1. Install Kubernetes modules from Ansible Galaxy: `ansible-galaxy collection install community.kubernetes`
1. Fill in `vars/credentials.yml` with username and password with administrative privileges to this project's namespace in Openshift.
1. Run `ansible-playbook provision-search-api.yml -e openshift_env=[environment]` where environment is either `prod` or `test`. Default value is `test`.
1. Run `ansible-playbook provision-search-api.yml -i [inventory]`
* `inventory` is one of `inventory-*.ini`
[management]
openshift-test-rhel7-19.it.helsinki.fi
[management:vars]
kube_server=okd-demo-0.k8s.it.helsinki.fi
app_backend_url=https://haku-test.it.helsinki.fi/internal_with_cert/solr
app_log_level="info,hy_search_api=debug"
app_image=quay.io/tike/hy-search-api:latest
openshift_env=demo
[management]
luotsi-0-20.it.helsinki.fi
[management:vars]
kube_server=ocp-test-0.k8s.it.helsinki.fi
app_backend_url=https://haku-test.it.helsinki.fi/internal_with_cert/solr
app_log_level="info,hy_search_api=debug"
app_image=quay.io/tike/hy-search-api:latest
openshift_env=test
---
- hosts: luotsi-0-20.it.helsinki.fi
- hosts: management
vars_files:
- vars/vars.yml
- "vars/env/{{ openshift_env | default('test') }}.yml"
- vars/credentials.yml
tasks:
- name: check that credentials are defined
......
---
kube_server: "ocp-test-0.k8s.it.helsinki.fi"
app_backend_url: 'https://haku-test.it.helsinki.fi/internal_with_cert/solr'
app_log_level: 'info,hy_search_api=debug'
app_image: 'quay.io/tike/hy-search-api:latest'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment