The formula does not woark under salt-ssh (or something wrong with my settings).
$ cat salt/pillar/top.sls
base:
'elk-ls-*':
- logstash
$ cat salt/pillar/logstash.sls
---
logstash:
inputs:
-
plugin_name: beat
port: 5044
$ salt-ssh 'elk-ls-*' state.apply logstash
----------
ID: logstash-config-inputs
Function: file.managed
Name: /etc/logstash/conf.d/01-inputs.conf
Result: False
Comment: Unable to manage file: Jinja error: logstash/map.jinja
Traceback (most recent call last):
File "/var/tmp/.sadm_2296c1_salt/pyall/salt/utils/templates.py", line 392, in render_jinja_tmpl
output = template.render(**decoded_context)
File "/var/tmp/.sadm_2296c1_salt/pyall/jinja2/asyncsupport.py", line 76, in render
return original_render(self, *args, **kwargs)
File "/var/tmp/.sadm_2296c1_salt/pyall/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/var/tmp/.sadm_2296c1_salt/pyall/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/var/tmp/.sadm_2296c1_salt/pyall/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "<template>", line 1, in top-level template code
File "/var/tmp/.sadm_2296c1_salt/pyall/salt/utils/jinja.py", line 171, in get_source
raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: logstash/map.jinja
; line 1
---
{%- from 'logstash/map.jinja' import logstash,format_logstash_config with context -%} <======================
{{ format_logstash_config('input', logstash.inputs) }}
Traceback (most recent call last):
File "/var/tmp/.sadm_2296c1_salt/pyall/salt/utils/templates.py", line 392, in render_jinja_tmpl
output = template.render(**decoded_context)
File "/var/tmp/.sadm_2296c1_salt/pyall/jinja2/asyncsupport.py", line 76, in render
[...]
---
Started: 06:06:19.322577
Duration: 108.909 ms
Changes:
$ salt-ssh --versions-report
Salt Version:
Salt: 2019.2.0
Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: Not Installed
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
Jinja2: 2.10.1
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: Not Installed
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.6.1
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: Not Installed
pycryptodome: Not Installed
pygit2: Not Installed
Python: 3.7.4 (default, Jul 16 2019, 07:12:58)
python-gnupg: Not Installed
PyYAML: 5.1.1
PyZMQ: Not Installed
RAET: Not Installed
smmap: Not Installed
timelib: Not Installed
Tornado: 4.5.3
ZMQ: Not Installed
System Versions:
dist: arch Manjaro Linux
locale: UTF-8
machine: x86_64
release: 4.19.69-1-MANJARO
system: Linux
version: arch Manjaro Linux
Hello,
The formula does not woark under salt-ssh (or something wrong with my settings).
Pillar's top:
Logstash pillar (only inputs for the testing purpose)
The following error message has appeared:
Versions: