-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix repmgrd service on Ubuntu #2451
Conversation
to-bar
commented
Jul 21, 2021
- Set 'daemonize=false' option in /etc/default/repmgrd
- Add test for 'repmgr service status'
- Update postgres user in sudoers file
/azp run |
Tested on AWS Ubuntu:
repmgr is not running :( (tests failed) |
e5db68c
to
8cace34
Compare
/azp run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -18,8 +18,7 @@ | |||
/bin/systemctl restart {{ pg.service_name[ansible_os_family] }}, | |||
/bin/systemctl reload {{ pg.service_name[ansible_os_family] }}, | |||
/bin/systemctl start {{ repmgr.service_name[ansible_os_family] }}, | |||
/bin/systemctl stop {{ repmgr.service_name[ansible_os_family] }}, | |||
{{ repmgr.bin_dir[ansible_os_family] }}/repmgr standby follow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
- name: repmgr for PG {{ pg_version }} | Update postgres user in sudoers file | ||
lineinfile: | ||
path: /etc/sudoers | ||
regexp: "^postgres ALL=\\(ALL:ALL\\) NOPASSWD:" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
* Set 'daemonize=false' option * Shorter test names * Add test for 'repmgr service status' * Update postgres user in sudoers file * Remove 'repmgr standby follow' from sudoers * Remove backslashes