[Debian-ha-maintainers] pcs: cluster init in postinst

Valentin Vidic Valentin.Vidic at CARNet.hr
Thu Dec 8 22:39:15 UTC 2016


On Thu, Dec 08, 2016 at 11:14:17PM +0100, Ferenc Wágner wrote:
> https://www.debian.org/doc/debian-policy/ch-files.html#s10.7.4 clearly
> excludes the proposed solution, because /etc/corosync/corosync.conf is a
> conffile of the corosync package.  We can invent something, though, if
> COROSYNC_MAIN_CONFIG_FILE isn't enough for pcs.  I can imagine splitting
> out the init system and the configuration into some corosync-system
> package or similar (like libvirt-daemon-system), which could conflict
> with pcs.  If nothing else works.  I don't know pcs well enough, how
> does it start corosync?

pcs uses systemctl/service to control corosync and pacemaker.  Similar
cluster init functionality also exists in crmsh:

  crm cluster init nodes=node1,node2

Also I don't think it is a good idea to make big packaging changes
close to the release.  Cluster init will always require some manual
steps that we can't cover in postinst but rather try to document
like: https://wiki.debian.org/Debian-HA/ClustersFromScratch

-- 
Valentin



More information about the Debian-ha-maintainers mailing list