forked from khamonsol/cb_ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy_couchbase.yml
78 lines (71 loc) · 2.67 KB
/
deploy_couchbase.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
68
69
70
71
72
73
74
75
76
77
78
# deploy_couchbase.yml
- name: Deploy Couchbase Server
hosts: couchbase_servers # Replace with the appropriate host/group name from your inventory
gather_facts: true
become: true
vars:
# If you want to specify a specific build, you will need to locate the build version by uncommenting some lines in the 02_install task and use that specifier here.
couchbase_version: 7.2.0-5325-1
admin_pw: Changeit
node_services:
node1.example.com: "data,query,index" # Services to be installed on server 1
node2.example.com: "data,query,index" # Services to be installed on server 2
node3.example.com: "data,query,index" # Services to be installed on server 3
node4.example.com: "data,query,index" # Services to be installed on server 4
node_service_paths:
data: "/opt/couchbase/var/data" # This is where the data path will be set if the node is defined to have the data service in the node services block
index: "/opt/couchbase/var/index" # This is where the index path will be set if the node is defined to have the index service in the node services block
cluster_ramsize: 1024 # Cluster RAM size in MB (can be overridden)
cluster_index_ramsize: 256 # Cluster Index RAM size in MB (can be overridden)
index_settings:
storage_mode: plasma
replicas: 2
memory_quota: 8196
index_memory_quota: 6777
# Define dynamic lists of users, buckets, and collections
couchbase_user_list:
- username: testuser1
password: ChangeMe1
role: ro_admin
- username: testuser2
password: ChangeMe2
role: ro_admin
- username: index_manager
password: ChangeMe3
role: "query_manage_index[*]"
couchbase_buckets:
- name: beyond
memory_quota: 1024
storage_backend: magma
bucket_type: couchbase
# bucket_ramsize: 500 # unused?
bucket_replica: 2
compression_mode: "active"
bucket_priority: high
collections:
- parent_scope: etl
name: pricenodes
maxTTL: 0
history: "false"
- parent_scope: pnl
name: daily
maxTTL: 0
history: "false"
- parent_scope: system
name: cachelogs
maxTTL: 864000
history: "false"
- parent_scope: system
name: cachesettings
maxTTL: 0
history: "false"
- parent_scope: user
name: override
maxTTL: 0
history: "false"
- parent_scope: user
name: permissions
maxTTL: 0
history: "false"
roles:
- couchbase_index_creation