Salt Version:
Salt: 3000.6
Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: Not Installed
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
Jinja2: 2.7.2
libgit2: Not Installed
M2Crypto: Not Installed
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.6.2
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: Not Installed
Python: 2.7.5 (default, Apr 2 2020, 13:16:51)
python-gnupg: Not Installed
PyYAML: 3.11
PyZMQ: 15.3.0
smmap: Not Installed
timelib: Not Installed
Tornado: 4.5.3
ZMQ: 4.1.4
System Versions:
dist: centos 7.9.2009 Core
locale: UTF-8
machine: x86_64
release: 3.10.0-1127.el7.x86_64
system: Linux
version: CentOS Linux 7.9.2009 Core
I'm getting the following error when postfix.config is called
[root@minion1 etc]# salt-call state.apply roles.postfix -l info
[INFO ] Loading fresh modules for state activity
[INFO ] Fetching file from saltenv 'base', ** done ** 'postfix/config.sls'
[ERROR ] Rendering exception occurred
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/salt/utils/templates.py", line 169, in render_tmpl
output = render_str(tmplstr, context, tmplpath)
File "/usr/lib/python2.7/site-packages/salt/utils/templates.py", line 404, in render_jinja_tmpl
buf=tmplstr)
SaltRenderError: Jinja variable 'default_database_type' is undefined
[CRITICAL] Rendering SLS 'base:postfix.config' failed: Jinja variable 'default_database_type' is undefined
local:
Data failed to compile:
----------
Rendering SLS 'base:postfix.config' failed: Jinja variable 'default_database_type' is undefined
Steps to reproduce the bug
It looks like the config.sls needs code similar to line 44 in init.sls
{%- set default_database_type = salt['pillar.get']('postfix:config:default_database_type', 'hash') %}
Your setup
Formula commit hash / release tag
postfix-formula: 42afb34 refs/tags/v1.2.2
Versions reports (master & minion)
Pillar / config used
Bug details
Describe the bug
I'm getting the following error when postfix.config is called
Steps to reproduce the bug
It looks like the config.sls needs code similar to line 44 in init.sls
{%- set default_database_type = salt['pillar.get']('postfix:config:default_database_type', 'hash') %}