Commit 254c8a73 authored by Julien Cigar's avatar Julien Cigar 🤘
Browse files

add absent

parent 700a2004
......@@ -21,12 +21,26 @@ pgbouncer_users:
- ini: pgbouncer_ini
{% endif %}
pgbouncer_ini:
{% if pgbouncer.config.present is defined %}
pgbouncer_ini_present:
ini.options_present:
- name: {{ pgbouncer.config }}
- name: {{ pgbouncer.ini }}
- sections:
{{ pgbouncer.config|yaml }}
{{ pgbouncer.config.present|yaml }}
- require:
- pkg: pgbouncer
- watch_in:
- service: pgbouncer_service
{% endif %}
{% if pgbouncer.config.absent is defined %}
pgbouncer_ini_absent:
ini.options_absent:
- name: {{ pgbouncer.ini }}
- sections:
{{ pgbouncer.config.absent|yaml }}
- require:
- pkg: pgbouncer
- watch_in:
- service: pgbouncer_service
{% endif %}
# vim: ts=2 sw=2
FreeBSD:
config: /usr/local/etc/pgbouncer.ini
ini: /usr/local/etc/pgbouncer.ini
users: /usr/local/etc/pgbouncer.users
pkg: pgbouncer
user: pgbouncer
......
......@@ -18,4 +18,8 @@ pgbouncer:
'*': host=pg11.lan
absent:
pgbouncer:
somekey: somevalue
- somekey
- anotherkey
databases:
- somedb
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment