-
Notifications
You must be signed in to change notification settings - Fork 1
/
dependencies.yml
67 lines (61 loc) · 1.62 KB
/
dependencies.yml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
- name: Ensure Python3
hosts: node1,node2
gather_facts: no
become: yes
tasks:
- name: Install python3
yum:
name: python3
state: present
- name: Ensure Middleware
hosts: node3
tasks:
- name: Ensure Podman
yum:
name: podman
state: present
become: yes
- name: Pull images
containers.podman.podman_image:
name: "{{ item }}"
tag: latest
loop:
- 'quay.io/redhattelco/intelli-infra-mysql'
- 'quay.io/redhattelco/intelli-infra-dm'
- 'quay.io/redhattelco/intelli-infra-fuse'
- name: Create a pod for the containers
containers.podman.podman_pod:
name: middleware
state: created
ports:
- "3306:3306"
- "8088:8282"
- "8080:8181"
- name: Run MySQL
containers.podman.podman_container:
image: quay.io/redhattelco/intelli-infra-mysql:latest
name: ii-mysql
pod: middleware
state: started
- name: Run Decision Manager
containers.podman.podman_container:
image: quay.io/redhattelco/intelli-infra-dm:latest
name: ii-dm
pod: middleware
env:
MYSQL_HOST: "ii-mysql"
MYSQL_PORT: "3306"
state: started
- name: Run Fuse
containers.podman.podman_container:
image: quay.io/redhattelco/intelli-infra-fuse:latest
name: ii-fuse
pod: middleware
env:
MYSQL_HOST: "ii-mysql"
MYSQL_PORT: "3306"
DMSVC_HOST: "ii-dm"
DMSVC_PORT: "8282"
DMSVC_PATH: "/service/host/reboot"
state: started