]> git.proxmox.com Git - corosync-pve.git/blame - patches/0002-don-t-install-default-corosync.conf.patch
rebase and re-format patches
[corosync-pve.git] / patches / 0002-don-t-install-default-corosync.conf.patch
CommitLineData
e17b446b 1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2a8fc658
FG
2From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com>
3Date: Tue, 7 Mar 2017 13:32:02 +0100
e17b446b 4Subject: [PATCH] don't install default corosync.conf
2a8fc658
FG
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
10---
e77cc04e 11 debian/corosync.conf | 111 ----------------------------------------
2a8fc658
FG
12 debian/corosync.install | 1 -
13 2 files changed, 112 deletions(-)
14 delete mode 100644 debian/corosync.conf
15
16diff --git a/debian/corosync.conf b/debian/corosync.conf
17deleted file mode 100644
e17b446b 18index 04444322..00000000
2a8fc658
FG
19--- a/debian/corosync.conf
20+++ /dev/null
21@@ -1,111 +0,0 @@
22-# Please read the corosync.conf.5 manual page
23-totem {
24- version: 2
25-
26- # Corosync itself works without a cluster name, but DLM needs one.
27- # The cluster name is also written into the VG metadata of newly
28- # created shared LVM volume groups, if lvmlockd uses DLM locking.
29- # It is also used for computing mcastaddr, unless overridden below.
30- cluster_name: debian
31-
32- # How long before declaring a token lost (ms)
33- token: 3000
34-
35- # How many token retransmits before forming a new configuration
36- token_retransmits_before_loss_const: 10
37-
38- # Limit generated nodeids to 31-bits (positive signed integers)
39- clear_node_high_bit: yes
40-
41- # crypto_cipher and crypto_hash: Used for mutual node authentication.
42- # If you choose to enable this, then do remember to create a shared
43- # secret with "corosync-keygen".
44- # enabling crypto_cipher, requires also enabling of crypto_hash.
45- # crypto_cipher and crypto_hash should be used instead of deprecated
46- # secauth parameter.
47-
48- # Valid values for crypto_cipher are none (no encryption), aes256, aes192,
49- # aes128 and 3des. Enabling crypto_cipher, requires also enabling of
50- # crypto_hash.
51- crypto_cipher: none
52-
53- # Valid values for crypto_hash are none (no authentication), md5, sha1,
54- # sha256, sha384 and sha512.
55- crypto_hash: none
56-
57- # Optionally assign a fixed node id (integer)
58- # nodeid: 1234
59-
60- # interface: define at least one interface to communicate
61- # over. If you define more than one interface stanza, you must
62- # also set rrp_mode.
63- interface {
64- # Rings must be consecutively numbered, starting at 0.
65- ringnumber: 0
66- # This is normally the *network* address of the
67- # interface to bind to. This ensures that you can use
68- # identical instances of this configuration file
69- # across all your cluster nodes, without having to
70- # modify this option.
71- bindnetaddr: 127.0.0.1
72- # However, if you have multiple physical network
73- # interfaces configured for the same subnet, then the
74- # network address alone is not sufficient to identify
75- # the interface Corosync should bind to. In that case,
76- # configure the *host* address of the interface
77- # instead:
78- # bindnetaddr: 192.168.1.1
79- # When selecting a multicast address, consider RFC
80- # 2365 (which, among other things, specifies that
81- # 239.255.x.x addresses are left to the discretion of
82- # the network administrator). Do not reuse multicast
83- # addresses across multiple Corosync clusters sharing
84- # the same network.
85- # mcastaddr: 239.255.1.1
86- # Corosync uses the port you specify here for UDP
87- # messaging, and also the immediately preceding
88- # port. Thus if you set this to 5405, Corosync sends
89- # messages over UDP ports 5405 and 5404.
90- mcastport: 5405
91- # Time-to-live for cluster communication packets. The
92- # number of hops (routers) that this ring will allow
93- # itself to pass. Note that multicast routing must be
94- # specifically enabled on most network routers.
95- ttl: 1
96- }
97-}
98-
99-logging {
100- # Log the source file and line where messages are being
101- # generated. When in doubt, leave off. Potentially useful for
102- # debugging.
103- fileline: off
104- # Log to standard error. When in doubt, set to no. Useful when
105- # running in the foreground (when invoking "corosync -f")
106- to_stderr: no
107- # Log to a log file. When set to "no", the "logfile" option
108- # must not be set.
109- to_logfile: no
110- #logfile: /var/log/corosync/corosync.log
111- # Log to the system log daemon. When in doubt, set to yes.
112- to_syslog: yes
113- # Log with syslog facility daemon.
114- syslog_facility: daemon
115- # Log debug messages (very verbose). When in doubt, leave off.
116- debug: off
117- # Log messages with time stamps. When in doubt, set to on
118- # (unless you are only logging to syslog, where double
119- # timestamps can be annoying).
120- timestamp: on
121- logger_subsys {
122- subsys: QUORUM
123- debug: off
124- }
125-}
126-
127-quorum {
128- # Enable and configure quorum subsystem (default: off)
129- # see also corosync.conf.5 and votequorum.5
130- provider: corosync_votequorum
131- expected_votes: 2
132-}
133diff --git a/debian/corosync.install b/debian/corosync.install
e77cc04e 134index 027a58db..f38d1f78 100755
2a8fc658
FG
135--- a/debian/corosync.install
136+++ b/debian/corosync.install
e77cc04e 137@@ -30,6 +30,5 @@ usr/share/augeas/lenses/corosync.aug
2a8fc658
FG
138 usr/share/augeas/lenses/tests/test_corosync.aug
139 etc/corosync/corosync.*example* usr/share/doc/corosync/examples
140 etc/corosync/uidgid.d
141-debian/corosync.conf etc/corosync
142 usr/share/corosync/xml2conf.xsl
143 var/lib/corosync