Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
salt-formulas
pgbouncer-formula
Commits
bcb3f0e7
Commit
bcb3f0e7
authored
Apr 30, 2020
by
Julien Cigar
🤘
Browse files
remove lookup
parent
27f7ad22
Changes
3
Hide whitespace changes
Inline
Side-by-side
pgbouncer/config.sls
View file @
bcb3f0e7
...
...
@@ -7,23 +7,23 @@ include:
{% if pgbouncer.users is defined %}
pgbouncer_users:
file.managed:
- name: {{ pgbouncer.
lookup.
users }}
- user: {{ pgbouncer.
lookup.
user }}
- group: {{ pgbouncer.
lookup.
group }}
- name: {{ pgbouncer.users }}
- user: {{ pgbouncer.user }}
- group: {{ pgbouncer.group }}
- mode: 640
- contents: |
{%- for user, password in pgbouncer.users.items() %}
"{{ user }}" "{{ password }}"
{%- endfor %}
- require:
- pkg: {{ pgbouncer.
lookup.
pkg }}
- pkg: {{ pgbouncer.pkg }}
- require_in:
- ini: pgbouncer_ini
{% endif %}
pgbouncer_ini:
ini.options_present:
- name: {{ pgbouncer.
lookup.
config }}
- name: {{ pgbouncer.config }}
- sections:
{{ pgbouncer.config|yaml }}
- require:
...
...
pgbouncer/install.sls
View file @
bcb3f0e7
...
...
@@ -2,4 +2,4 @@
pgbouncer_pkg:
pkg.installed:
- name: {{ pgbouncer.
lookup.
pkg }}
- name: {{ pgbouncer.pkg }}
pgbouncer/os.yaml
View file @
bcb3f0e7
# vim: ts=2 sw=2
FreeBSD
:
lookup
:
config
:
/usr/local/etc/pgbouncer.ini
users
:
/usr/local/etc/pgbouncer.users
pkg
:
pgbouncer
user
:
pgbouncer
group
:
pgbouncer
config
:
/usr/local/etc/pgbouncer.ini
users
:
/usr/local/etc/pgbouncer.users
pkg
:
pgbouncer
user
:
pgbouncer
group
:
pgbouncer
config
:
pgbouncer
:
auth_file
:
/usr/local/etc/pgbouncer.users
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment