Skip to content

Instantly share code, notes, and snippets.

@jas02
Created March 22, 2017 08:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jas02/3fa2b76f1df0cdf3e49126f2f9d25c4d to your computer and use it in GitHub Desktop.
Save jas02/3fa2b76f1df0cdf3e49126f2f9d25c4d to your computer and use it in GitHub Desktop.
pgpool_zone:
firewalld.present:
- name: pgpool_zone
- services:
- pgpool
- sources:
- {{ slave_ip }}/32
- watch_in:
- service: start firewalld
pgpool:
firewalld.service:
- name: pgpool
- ports:
- 9898/tcp
- 9000/tcp
- 9694/tcp
- watch_in:
- service: start firewalld
start firewalld:
service.running:
- name: firewalld
- enable: True
- reload: True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment