aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-extended/corosync/corosync
diff options
context:
space:
mode:
authorMingli Yu <Mingli.Yu@windriver.com>2017-12-29 13:44:35 +0800
committerKhem Raj <raj.khem@gmail.com>2018-06-22 17:04:43 -0700
commit16fc3c42c797113ff23395c6c24b56070687413e (patch)
tree7f8b27cbd60db8e224d15bde69ac00fd5bb0acbb /meta-networking/recipes-extended/corosync/corosync
parent4a50bab0fbde4e4a79b1d4d58d8f459178bc92a0 (diff)
downloadmeta-openembedded-contrib-16fc3c42c797113ff23395c6c24b56070687413e.tar.gz
corosync: add corosync.conf.example
* Add corosync.conf.example as the template for /etc/corosync/corosync.conf to make the cluster works as the previous default config doesn't work as below output: root@host1:/# crm status Stack: unknown Current DC: NONE Last updated: Mon Dec 25 05:30:59 2017 Last change: Mon Dec 25 05:30:32 2017 by root via cibadmin on host1 0 nodes configured 1 resource configured Full list of resources: WebSite (ocf::heartbeat:apache): Stopped Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-extended/corosync/corosync')
-rw-r--r--meta-networking/recipes-extended/corosync/corosync/corosync.conf58
1 files changed, 58 insertions, 0 deletions
diff --git a/meta-networking/recipes-extended/corosync/corosync/corosync.conf b/meta-networking/recipes-extended/corosync/corosync/corosync.conf
new file mode 100644
index 0000000000..6aef9de950
--- /dev/null
+++ b/meta-networking/recipes-extended/corosync/corosync/corosync.conf
@@ -0,0 +1,58 @@
+# Starting point for cluster with pacemaker/openais
+compatibility: none
+
+corosync {
+ user: root
+ group: root
+}
+
+aisexec {
+ with Pacemaker
+ user: root
+ group: root
+}
+
+service {
+ name: pacemaker
+ ver: 1
+}
+
+totem {
+ version: 2
+ secauth: off
+ threads: 0
+ interface {
+ ringnumber: 0
+ # Cluster network address
+ bindnetaddr: 192.168.10.0
+ # Should be fine in most cases, don't forget to allow
+ # packets for this address/port in netfilter if there
+ # is restrictive policy set for cluster network
+ mcastaddr: 226.94.1.1
+ mcastport: 5405
+ }
+}
+
+logging {
+ fileline: off
+ to_stderr: no
+ to_logfile: yes
+ to_syslog: yes
+ logfile: /var/log/cluster/corosync.log
+ debug: off
+ timestamp: on
+ logger_subsys {
+ subsys: AMF
+ debug: off
+ }
+}
+
+amf {
+ mode: disabled
+}
+
+quorum {
+ # Quorum for the Pacemaker Cluster Resource Manager
+ provider: corosync_votequorum
+ expected_votes: 1
+}