Skip to content

Rendering SLS 'base:postgres.server' failed: found unexpected ':'; line 42 #208

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

Closed
bogdanr opened this issue Apr 15, 2018 · 2 comments
Closed

Comments

@bogdanr
Copy link

bogdanr commented Apr 15, 2018

Just running the state on Debian 9 produces the following error:

pg1:
    Data failed to compile:
----------
    Rendering SLS 'base:postgres.server' failed: found unexpected ':'; line 42

---
[...]
    - group: postgres
    - mode: 600
    - source: salt://postgres/templates/pg_hba.conf.j2
    - template: jinja
    - defaults:
        acls: [[u'local', u'all', u'all', u'peer'], [u'host', u'all', u'all', u'127.0.0.1/32', u'md5'], [u'host', u'all', u'all', u'::1/128', u'md5']]    <======================
    # Create the empty file before managing to overcome the limitation of check_cmd
    - onlyif: test -f /etc/postgresql/9.5/main/pg_hba.conf || touch /etc/postgresql/9.5/main/pg_hba.conf
    # Make a local backup before the file modification
    - check_cmd: >-
        salt-call --local file.copy
[...]
---
@noelmcloughlin
Copy link
Contributor

noelmcloughlin commented Apr 15, 2018 via email

@vutny
Copy link
Contributor

vutny commented Apr 16, 2018

@bogdanr And we have merged a workaround in PR #207 last week, so just pull the latest master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants