-
Notifications
You must be signed in to change notification settings - Fork 75
Changes I've done to get Governor to work other then localhost #9
Comments
I'm thinking we should add rows for
The replication user should automatically be added when creating the |
@Winslett yes that would be a nice start. |
I think we need to (re)write the postgresql.conf as well for this to work:
|
Thank for interesting HA solution! I tried to implement Postgres HA solution with governor not on localhost and that is not implement, there are many errors, fault's and etc ( |
It is not really a bug. I have it working now on non-localhost ip addresses. I had to change the def initialize(self):
if os.system("initdb -D %s" % self.data_dir) == 0:
# start Postgres without options to setup replication user indepedent of other system settings
self.write_postgresql_conf()
self.write_pg_hba()
os.system("pg_ctl start -w -D %s" % self.data_dir) the postgresql_conf function itself: def write_postgresql_conf(self):
f = open("%s/postgresql.conf" % self.data_dir, "a")
f.write("listen_addresses = '%s'" % self.host )
f.close() |
@tvb, do you have the non-localhost code available somewhere, like a fork or a branch? I'd love to take a look at it ;-) |
@wkielas sorry. I do not :( |
I had to change some things to get governor work with something other then localhost.
First I had to change etcd so it uses init and my own config:
In
/etc/init/etcd.override
:In
helpers/postgresql.py
I added the following line:right after:
and lastly added:
to the postgresX.yml files. This not ideal as now the hole 10.0.0.0/24 network is trusted. But it did the trick for now. I would like to know you guys thought on this.
The text was updated successfully, but these errors were encountered: