-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinventory-test.yml
64 lines (63 loc) · 1.8 KB
/
inventory-test.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
all:
hosts:
maria1_test:
ansible_host: exopgesrv85.epfl.ch
ansible_user: root
ansible_port: 22
host_basename: "{{ ansible_host | regex_replace('\\..*$', '') }}"
vgs:
# pvs is a comma separated list
- pvs: "/dev/sda3"
vg_name: "ubuntu-vg"
lvs:
- vg_name: "ubuntu-vg"
lv_name: "mariadb"
lv_size: "10g"
fstype: "ext4"
path: "/srv/mariadb"
maria2_test:
ansible_host: exopgesrv86.epfl.ch
ansible_user: root
ansible_port: 22
host_basename: "{{ ansible_host | regex_replace('\\..*$', '') }}"
vgs:
# pvs is a comma separated list
- pvs: "/dev/sda3"
vg_name: "ubuntu-vg"
lvs:
- vg_name: "ubuntu-vg"
lv_name: "mariadb"
lv_size: "10g"
fstype: "ext4"
path: "/srv/mariadb"
vars:
inventory_environment: test
shared_path: '/mnt/mariadb_shared'
nfs_shares:
- src: 'nas-app-ma-nfs1.epfl.ch:si_test_mysql_wp_binlogs_app'
mount: "{{ shared_path }}"
vip_address: "128.178.109.64"
# children:
mariadb_primaries:
hosts:
maria1_test:
old_data_source: root@exopgesrv86:/var/lib/mysql
server_id: 1
mariadb_port: 3306
folder_name: "{{ host_basename }}_primary"
container_name: mariadb_primary
mycnf_name: my_primary.cnf
output_backup_dir: "{{ shared_path }}/initial_replica_transfer"
replica_hostnames:
- exopgesrv86.epfl.ch
mariadb_replicas:
hosts:
maria2_test:
server_id: 2
mariadb_port: 3306
folder_name: "{{ host_basename }}_replica"
container_name: mariadb_replica
mycnf_name: my_replica.cnf
input_backup_dir: "{{ shared_path }}/initial_replica_transfer"
primary_hostname: 128.178.109.22
primary_port: 3306