|
1 | 1 | ---
|
2 |
| -# Proxy variables (for offline installation) |
| 2 | +# Proxy variables (optional) for download packages using a proxy server |
3 | 3 | proxy_env: {}
|
4 | 4 | # http_proxy: http://10.128.64.9:3128
|
5 | 5 | # https_proxy: http://10.128.64.9:3128
|
@@ -197,103 +197,3 @@ pgbouncer_users:
|
197 | 197 | # - { username: "", password: "" }
|
198 | 198 |
|
199 | 199 |
|
200 |
| -# System variables |
201 |
| -ntp_enabled: 'false' # specify 'true' if you want to install and configure the ntp service |
202 |
| -ntp_servers: [] |
203 |
| -# - "10.128.64.44" |
204 |
| -# - "10.128.64.45" |
205 |
| - |
206 |
| -timezone: [] |
207 |
| -#timezone: "Europe/Moscow" |
208 |
| - |
209 |
| -# Generate locale |
210 |
| -## (except RHEL>=8,use glibc-langpack) |
211 |
| -locales: |
212 |
| - - { language_country: "en_US", encoding: "UTF-8" } |
213 |
| - - { language_country: "ru_RU", encoding: "UTF-8" } # optional |
214 |
| -# - { language_country: "", encoding: "" } |
215 |
| - |
216 |
| - |
217 |
| -# Kernel parameters |
218 |
| - # these parameters for example! Specify kernel options for your system |
219 |
| -sysctl_conf: |
220 |
| - - { name: "vm.swappiness", value: "1" } |
221 |
| - - { name: "vm.min_free_kbytes", value: "102400" } |
222 |
| - - { name: "vm.dirty_expire_centisecs", value: "1000" } |
223 |
| - - { name: "vm.dirty_background_bytes", value: "67108864" } |
224 |
| - - { name: "vm.dirty_bytes", value: "536870912" } |
225 |
| -# - { name: "vm.nr_hugepages", value: "9510" } # example "9510"=18GB |
226 |
| - - { name: "vm.zone_reclaim_mode", value: "0" } |
227 |
| - - { name: "kernel.numa_balancing", value: "0" } |
228 |
| - - { name: "kernel.sched_migration_cost_ns", value: "5000000" } |
229 |
| - - { name: "kernel.sched_autogroup_enabled", value: "0" } |
230 |
| - - { name: "net.ipv4.ip_nonlocal_bind", value: "1" } |
231 |
| - - { name: "net.ipv4.ip_forward", value: "1" } |
232 |
| - - { name: "net.ipv4.ip_local_port_range", value: "1024 65535" } |
233 |
| - - { name: "net.netfilter.nf_conntrack_max", value: "1048576" } |
234 |
| -# - { name: "", value: "" } |
235 |
| -# - { name: "", value: "" } |
236 |
| - |
237 |
| - |
238 |
| -# Transparent Huge Pages |
239 |
| -disable_thp: 'true' # or 'false' |
240 |
| - |
241 |
| - |
242 |
| -# Max open file limit |
243 |
| -set_limits: 'true' # or 'false' |
244 |
| -limits_user: "postgres" |
245 |
| -soft_nofile: 65536 |
246 |
| -hard_nofile: 200000 |
247 |
| - |
248 |
| - |
249 |
| -# I/O Scheduler (optional) |
250 |
| -set_scheduler: 'false' # or 'true' |
251 |
| -scheduler: |
252 |
| - - { sched: "deadline" , nr_requests: "1024", device: "sda" } |
253 |
| -# - { sched: "noop" , nr_requests: "1024", device: "sdb" } |
254 |
| -# - { sched: "" , nr_requests: "1024", device: "" } |
255 |
| - |
256 |
| -# Non-multiqueue I/O schedulers: |
257 |
| - # cfq - for desktop systems and slow SATA drives |
258 |
| - # deadline - for SAS drives (recommended for databases) |
259 |
| - # noop - for SSD drives |
260 |
| -# Multiqueue I/O schedulers (blk-mq): |
261 |
| -## (Recommend the use of blk-mq in environments that support it. For Fast SSD Storage and Linux kernel 4.12+) |
262 |
| - # mq-deadline - (recommended for databases) |
263 |
| - # none - (ideal for fast random I/O devices such as NVMe) |
264 |
| - # bfq - (avoid for databases) |
265 |
| - # kyber |
266 |
| - |
267 |
| - |
268 |
| -# SSH Keys (optional) |
269 |
| -enable_ssh_key_based_authentication: 'false' # or 'true' for configure SSH Key-Based Authentication |
270 |
| -ssh_key_user: "postgres" |
271 |
| -ssh_key_state: "present" |
272 |
| -ssh_known_hosts: "{{ groups['postgres_cluster'] }}" |
273 |
| - |
274 |
| - |
275 |
| -# Firewall (ansible-role-firewall) |
276 |
| - # https://github.com/geerlingguy/ansible-role-firewall |
277 |
| -firewall_enabled_at_boot: true |
278 |
| - |
279 |
| -firewall_allowed_tcp_ports: |
280 |
| - - "{{ ansible_ssh_port }}" |
281 |
| - - "{{ postgresql_port }}" |
282 |
| - - "{{ pgbouncer_listen_port }}" |
283 |
| - - "2379" # ETCD port |
284 |
| - - "2380" # ETCD port |
285 |
| - - "8008" # Patroni REST API port |
286 |
| - - "5000" # HAProxy (read/write) master |
287 |
| - - "5001" # HAProxy (read only) all replicas |
288 |
| - - "5002" # HAProxy (read only) synchronous replica only |
289 |
| - - "5003" # HAProxy (read only) asynchronous replicas only |
290 |
| - - "7000" # HAProxy stats |
291 |
| - |
292 |
| -firewall_additional_rules: |
293 |
| - - "iptables -p vrrp -A INPUT -j ACCEPT" # Keepalived (vrrp) |
294 |
| - - "iptables -p vrrp -A OUTPUT -j ACCEPT" # Keepalived (vrrp) |
295 |
| - |
296 |
| - # disable firewalld (installed by default on RHEL/CentOS) or ufw (installed by default on Ubuntu) |
297 |
| -firewall_disable_firewalld: true |
298 |
| -firewall_disable_ufw: true |
299 |
| - |
0 commit comments