Skip to content

Commit 9138851

Browse files
committed
Config credentials: context sample
1 parent 166ae1f commit 9138851

File tree

5 files changed

+38
-0
lines changed

5 files changed

+38
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
config:
2+
context:
3+
admin_password:
4+
from: file
5+
file: secrets/admin_password.txt
6+
rstrip: true
7+
replicator_password:
8+
from: file
9+
file: secrets/replicator_password.txt
10+
rstrip: true
11+
client_password:
12+
from: file
13+
file: secrets/client_password.txt
14+
rstrip: true
15+
16+
credentials:
17+
users:
18+
admin:
19+
password: '{{ context.admin_password }}'
20+
replicator:
21+
password: '{{ context.replicator_password }}'
22+
roles: [ replication ]
23+
sampleuser:
24+
password: '{{ context.client_password }}'
25+
26+
groups:
27+
group001:
28+
replicasets:
29+
replicaset001:
30+
instances:
31+
instance001:
32+
iproto:
33+
listen:
34+
- uri: '127.0.0.1:3301'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
instance001:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
T0p_Secret_P@$$w0rd
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
123456
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
topsecret

0 commit comments

Comments
 (0)