forked from tarantool/ansible-cartridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhosts.yml
49 lines (40 loc) · 1.31 KB
/
hosts.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
---
all:
vars:
cartridge_app_name: getting-started-app # application name
cartridge_package_path: ./getting-started-app-1.0.0-0.rpm # path to package to deploy
cartridge_cluster_cookie: app-default-cookie # cluster cookie
cartridge_defaults: # default instance parameters
some_option: 'default value'
# common ssh options
ansible_ssh_private_key_file: ~/.vagrant.d/insecure_private_key
ansible_ssh_common_args: '-o IdentitiesOnly=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
# INSTANCES
hosts:
storage-1:
config:
advertise_uri: '172.19.0.2:3301'
http_port: 8181
app-1:
config:
advertise_uri: '172.19.0.3:3301'
http_port: 8182
storage-1-replica:
config:
advertise_uri: '172.19.0.3:3302'
http_port: 8183
children:
# GROUP INSTANCES BY MACHINES
machine1: # first machine address and connection opts
vars:
ansible_host: 172.19.0.2
ansible_user: vagrant
hosts: # instances to be started on this machine
storage-1:
machine2: # second machine address and connection opts
vars:
ansible_host: 172.19.0.3
ansible_user: vagrant
hosts: # instances to be started on this machine
app-1:
storage-1-replica: