saltstack-formulas/postgres-formula

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

bogdanr opened this issue · 2 comments

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
[...]
---
vutny commented

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