-
Notifications
You must be signed in to change notification settings - Fork 0
/
provision.yaml
47 lines (47 loc) · 1.73 KB
/
provision.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
- name: Provision
gather_facts: false
hosts: cluster
vars:
is_ci: "{{ lookup('ansible.builtin.env', 'CI') }}"
vars_files:
- ../vars/vault.yaml
- ../vars/defaults.yaml
roles:
- role: mucsi96.kubetools.ssh_auth
- role: mucsi96.kubetools.gather_facts
- role: mucsi96.kubetools.pull_kube_config
vars:
local_kube_config: "{{ inventory_dir }}/.kube/config"
- role: mucsi96.kubetools.deploy_postgres_db
vars:
k8s_name: "{{ db_host }}"
host_prefix: workout
- role: mucsi96.kubetools.deploy_webdriver
- role: mucsi96.kubetools.deploy_spring_app
vars:
k8s_name: spring-app
image: mucsi96/training-log-pro-server
tag_prefix: server
host_prefix: workout
base_path: /api
app_env:
POSTGRES_DB: "{{ db_name }}"
POSTGRES_HOSTNAME: "{{ db_host }}"
POSTGRES_PORT: "{{ db_port }}"
POSTGRES_USER: "{{ db_username }}"
POSTGRES_PASSWORD: "{{ db_password }}"
WITHINGS_ACCOUNTS_URI: "{{ withings_accounts_uri }}"
WITHINGS_API_URI: "{{ withings_api_uri }}"
WITHINGS_CLIENT_ID: "{{ withings_client_id }}"
WITHINGS_CLIENT_SECRET: "{{ withings_client_secret }}"
STRAVA_API_URI: "{{ strava_api_uri }}"
STRAVA_CLIENT_ID: "{{ strava_client_id }}"
STRAVA_CLIENT_SECRET: "{{ strava_client_secret }}"
WEBDRIVER_API_URI: "http://{{ webdriver_host }}:{{ webdriver_port }}/wd/hub"
- role: mucsi96.kubetools.deploy_client_app
vars:
k8s_name: client-app
image: mucsi96/training-log-pro-client
tag_prefix: client
host_prefix: workout
base_path: /