forked from saltstack-formulas/mongodb-formula
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpillar.example
184 lines (169 loc) · 4.95 KB
/
pillar.example
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
mongodb:
## NO PILLAR DATA ##
## MINIMAL EXAMPLE ##
server:
######## install from OS distribution (default: true)
use_repo: True
version: 4.0
######## install from archive file (default: false)
#use_archive: True
#version: 4.0.3
{%- if grains.os == 'MacOS' %}
source_hash: sha512=001f2f480ef70edc423f08ff3b8d299a404f3544318737aa7db3a303e681b5ba3e6b3c605a84ea75b48e7ed9427a8ddbad39b85811f353180e95b1054480b166
{%- endif %}
## DETAILED EXAMPLE ##
bic:
######## install from archive file
version: 2.7.0
{%- if grains.os == 'MacOS' %}
source_hash: md5=b88ccf9ce4ff785fd1e65add94e4eb8e
{%- endif %}
robo3t:
######## install from archive file
version: 1.2.1
{%- if grains.os == 'Windows' %}
source_hash: sha512=1d143a4eb96f639102e3586445204d111cc94accbc3e3724c973f5e34d3df2ba971601eee9b2fe2601d694067577324160fb7bf9a3e1f1daad0b91cd1c717237
{%- elif grains.os == 'MacOS' %}
source_hash: sha512=1abd0f592503c100271646ce172c4af5c1f9fb322840dc7087eb0810a31368332a671523a1dc52ce7a4a5e37d36190405188bf6fb22c857fe132ea1b15548bf9
{%- else %} # Linux
source_hash: sha512=ead2c4847dc1cd4024f60f34a142af6c6818f90a37b5ae075c8b65414ee8ca8074355446c9e264094f776f7798bfba37a7c7018f94d0bec109715061ab3a57c3
{%- endif %}
compass:
######## install from archive file
version: 1.17.0
system:
userhome: /home
use_firewalld: False
use_selinux: False
pidpath: /var/run/mongodb
deps:
- curl
- openssl
dl:
interval: 60
retries: 2
tmpdir: /tmp/mongodbtmp
server:
package: mongodb-org
version: 4.0
use_repo: False
use_archive: False
use_schema: False
disable_transparent_hugepages: true
binpath: /usr #could be /usr/local/mongodb when use_archive=true
user: mongodb
group: mongodb
mongod:
service: mongod
shortcut: false
package: mongodb-org-server
conf_path: /etc/mongod.conf
conf:
systemLog:
logAppend: False
destination: file
path: /var/log/mongodb/mongod.log
storage:
dbPath: /var/lib/mongodb/mongod
journal:
enabled: true
replication:
replSetName: "rs1"
sharding:
clusterRole: shardsvr
net:
bindIp: {{ grains.ipv4[-1] or grains.ipv6[-1] }}
port: 27018
processManagement:
timeZoneInfo: /usr/share/zoneinfo
fork: true
pidFilePath: /var/run/mongodb/mongod.pid
systemd:
file: /usr/lib/systemd/system/mongod.service
conf:
Type: forking
LimitFSIZE: infinity
LimitCPU: infinity
LimitAS: infinity
LimitNOFILE: 64000
LimitNPROC: 64000
LimitMEMLOCK: infinity
TasksMax: infinity
TasksAccounting: false
mongos:
service: mongos
shortcut: false
package: mongodb-org-mongos
conf_path: /etc/mongos.conf
conf:
systemLog:
destination: file
path: /var/log/mongodb/mongos.log
processManagement:
timeZoneInfo: /usr/share/zoneinfo
fork: true
pidFilePath: /var/run/mongodb/mongos.pid
net:
bindIp: {{ grains.ipv4[-1] or grains.ipv6[-1] }}
port: 28017
sharding:
configDB: 'rs1/{{ grains.ipv4[-1] or grains.ipv6[-1] }}:27018'
systemd:
file: /usr/lib/systemd/system/mongos.service
conf:
Type: simple
LimitFSIZE: infinity
LimitCPU: infinity
LimitAS: infinity
LimitNOFILE: 64000
LimitNPROC: 64000
LimitMEMLOCK: infinity
TasksMax: infinity
TasksAccounting: false
shell:
package: mongodb-org-shell
mongorc: /etc/mongorc.js
tools:
package: mongodb-org-tools
bic:
######### install from archive file
version: 2.7.0
use_repo: False
use_archive: true
use_schema: True
binpath: /usr/local/bic
user: mongodb
group: mongodb
mongosqld:
service: mongosqld
shortcut: false
conf_path: /etc/mongosqld.conf
conf:
systemLog:
logAppend: true
path: /var/log/mongodb/mongosqld.log
schema:
path: /etc/mongosqld/schema
security:
enabled: false
mongodb:
net:
uri: '{{ grains.ipv4[-1] or grains.ipv6[-1] }}:27018'
#auth:
# username: root
# password: changeme
net:
bindIp: {{ grains.ipv4[-1] or grains.ipv6[-1] }}
port: 3307
systemd:
file: /usr/lib/systemd/system/mongosqld.service
conf:
Type: simple
LimitFSIZE: infinity
LimitCPU: infinity
LimitAS: infinity
LimitNOFILE: 64000
LimitNPROC: 64000
LimitMEMLOCK: infinity
TasksMax: infinity
TasksAccounting: false