Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- vars:
- op_store_1_host: "10.0.1.19"
- op_store_router_1_port: "3301"
- op_store_router_1_addr: "{{ op_store_1_host }}:{{ op_store_router_1_port }}"
- op_store_2_host: "10.0.1.50"
- op_store_router_2_port: "3301"
- op_store_router_2_addr: "{{ op_store_2_host }}:{{ op_store_router_2_port }}"
- op_store_routers_addrs: "{{ op_store_router_1_addr }},{{ op_store_router_2_addr }}"
- op-store:
- hosts:
- op-store-router-1:
- ansible_ssh_host: "{{ op_store_1_host }}"
- roles: ['router']
- replicaset_alias: "router"
- failover_priority:
- - "op-store-router-1"
- - "op-store-router-2"
- config:
- advertise_uri: "10.0.1.19:3301"
- http_port: 8182
- user: "tarantool"
- password: "tarantool"
- memtx_memory: 314572800 # 300Mb
- op-store-storage-1-master:
- ansible_ssh_host: "{{ op_store_1_host }}"
- roles: ['storage']
- replicaset_alias: "storage-1"
- failover_priority:
- - "op-store-storage-1-master"
- - "op-store-storage-1-slave-1"
- config:
- advertise_uri: "10.0.1.19:3302"
- http_port: 8183
- user: "tarantool"
- password: "tarantool"
- memtx_memory: 3221225472 # 3Gb
- enable_expiraiond: "1"
- expiration_time: "86400000000" # 24 hours
- op-store-storage-1-slave-1:
- ansible_ssh_host: "{{ op_store_1_host }}"
- roles: ['storage']
- replicaset_alias: "storage-1"
- failover_priority:
- - "op-store-storage-1-master"
- - "op-store-storage-1-slave-1"
- config:
- advertise_uri: "10.0.1.19:3303"
- http_port: 8184
- user: "tarantool"
- password: "tarantool"
- memtx_memory: 3221225472 # 3Gb
- enable_expiraiond: "1"
- expiration_time: "86400000000" # 24 hours
- op-store-router-2:
- ansible_ssh_host: "{{ op_store_2_host }}"
- roles: ['router']
- replicaset_alias: "router"
- failover_priority:
- - "op-store-router-1"
- - "op-store-router-2"
- config:
- advertise_uri: "10.0.1.50:3301"
- http_port: 8182
- user: "tarantool"
- password: "tarantool"
- memtx_memory: 314572800 # 300Mb
- op-store-storage-2-master:
- ansible_ssh_host: "{{ op_store_2_host }}"
- roles: ['storage']
- replicaset_alias: "storage-2"
- failover_priority:
- - "op-store-storage-2-master"
- - "op-store-storage-2-slave-1"
- config:
- advertise_uri: "10.0.1.50:3302"
- http_port: 8183
- user: "tarantool"
- password: "tarantool"
- memtx_memory: 3221225472 # 3Gb
- enable_expiraiond: "1"
- expiration_time: "86400000000" # 24 hours
- op-store-storage-2-slave-1:
- ansible_ssh_host: "{{ op_store_2_host }}"
- roles: ['storage']
- replicaset_alias: "storage-2"
- failover_priority:
- - "op-store-storage-2-master"
- - "op-store-storage-2-slave-1"
- config:
- advertise_uri: "10.0.1.50:3303"
- http_port: 8184
- user: "tarantool"
- password: "tarantool"
- memtx_memory: 3221225472 # 3Gb
- enable_expiraiond: "1"
- expiration_time: "86400000000" # 24 hours
- vars:
- ansible_ssh_common_args: "{{ ssh_common_args }}" # deploy via ssh proxy
- cartridge_app_name: tarantool-storage # application name
- cartridge_package_path: ./dists/operational-storage/rpm/tarantool-storage-0.1.0-0.rpm # path to package to deploy
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement