YanChii / ansible-role-postgres-ha

Create postgresql HA auto-failover cluster using pcs, pacemaker and PAF
Apache License 2.0
33 stars 22 forks source link

possibility to support opensuse? #26

Open cavamagie opened 5 years ago

cavamagie commented 5 years ago

thabk you

YanChii commented 5 years ago

Hi @cavamagie,

In theory yes, it's possible. I can take a look. But I will need some help with that, at least testing.

What repository source do you recommend for postgres packages?

Jan

cavamagie commented 5 years ago

hi @YanChii

i use http://download.opensuse.org/repositories/server:/database:/postgresql/openSUSE_Tumbleweed/

zypper addrepo http://download.opensuse.org/repositories/server:database:postgresql/openSUSE_Tumbleweed/ PostgreSQL

https://software.opensuse.org/package/postgresql96-server

thank you

YanChii commented 5 years ago

Bad news. I've found out that OpenSUSE does not use the pcs command for cluster administration (it has crm command instead). That complicates things a lot because I use pcs calls and pcs ansible modules for manipulating the cluster. It's possible to call crm directly and omit the ansible modules but that requires significantly more work and I'm afraid I will not have time for such project.

If you really want it and and you are willing to help me, I can show you what exactly needs to be changed (roughly: change yum tasks for zypper tasks and pcs_* tasks for direct crm calls).

Jan