-
-
Notifications
You must be signed in to change notification settings - Fork 74
/
sample-multiserver.yml
101 lines (83 loc) · 2.85 KB
/
sample-multiserver.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
---
# This is a sample configuration. To use it, copy it to local-configure.yml
# and edit.
#
# Multiserver configuration
# -------------------------
#
# This is an example of the techniques you may use to install multiple,
# separate Plone instances to the same server.
#
# Unlike with other examples, you won't want to use this without
# major changes to reflect your server needs.
# Things you MUST change
# ----------------------
admin_email:
plone_initial_password:
muninnode_query_ips:
- ip.of.munin.monitor
# If you do not have a Munin monitor running, comment out the
# muninnode_query_ips and uncomment the line below:
# install_muninnode: no
# Major settings
# --------------
# Plone 4.3.x, 5.0.x, 5.1.x and 5.2.x are currently tested and working.
# Make sure this setting is quoted so that it's interpreted as a string.
plone_version: '5.2.1'
# 2 clients
plone_client_count: 2
# smallish
plone_zodb_cache_size: 15000
# and enforce that with a memory-monitor
plone_client_max_memory: 750MB
# it's 2020 now... Use Python 3
plone_python_version: "3"
# with Python 3, z2monitor should not be used
plone_client_tcpcheck: no
# Plone instance settings
# -----------------------
# Most settings can be either global or specific to a particular install.
# Specify specific settings in the "playbook_plones list".
# You must, at a minimum, specify specifics for plone_instance_name, which
# is used to distinguish instances, and the ZEO/ZEO client ports.
playbook_plones:
- plone_instance_name: primary
plone_zeo_port: 8100
plone_client_base_port: 8081
loadbalancer_port: 8080
# loadbalancer_options: "maxconn 1 inter 60000 downinter 2000 rise 1 fall 2 on-error mark-down error-limit 15"
loadbalancer_listen_extra: "timeout connect 30s # longer timeout for primary"
loadbalancer_healthcheck: off
webserver_virtualhosts:
- hostname: "{{ inventory_hostname }}"
aliases:
- default
zodb_path: /Plone
- hostname: "{{ inventory_hostname }}"
protocol: https
aliases:
- default
zodb_path: /Plone
certificate_file: tests/snakeoil.pem
key_file: tests/snakeoil.pem
plone_restart_pre_script: |
echo pre restart script running
plone_restart_post_script: |
echo post restart script running
- plone_instance_name: secondary
plone_version: '5.1.6'
plone_python_version: "2.7"
plone_zeo_port: 7100
plone_client_base_port: 7081
loadbalancer_port: 7080
loadbalancer_healthcheck: on
plone_client_tcpcheck: on
plone_hot_monitor: cron
plone_buildout_cfg: buildout.cfg
webserver_virtualhosts:
- hostname: localhost
zodb_path: /Plone
extra: "# test comment here; added via extra"
location_extra: "# test comment here; added via location_extra"
- hostname: test.example.com
zodb_path: /Plone