Rendering SLS 'base:postgres.server' failed: found unexpected ':'; line 42
bogdanr opened this issue · 2 comments
bogdanr commented
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 commented
Yeah, its a salt 2018.3.0 bug: saltstack/salt#46929
…On 4/15/18, Bogdan Rădulescu ***@***.***> wrote:
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
[...]
---
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#208