-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Relative includes are not working when being called with state.sls <directory>/<slsfile> #55255
Comments
This is documented somewhere, I believe I've seen it before but if the state file is not in
From the 'Steps to reproduce above...'
which is why I believe Salt doesn't know about other possible file_roots 😄 I hope that helps! |
Hi Joe, file_roots is not the issue I think:
To make the issue hopefully more clear: Note that the only difference is the forward slash vs. the dot between mailserver and postfix Debug output of the salt-minion when running
So it does not even try to search for the correct |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
@xeacott are you able to take a look at this in the near future? |
Thank you for updating this issue. It is no longer marked as stale. |
Description of Issue
When calling a state with for example
salt mx3 state.sls mailserver/postfix
relative includes are not working. When called assalt mx3 state.sls mailserver.postfix
they do work.Setup
mailserver/postfix.sls:
mailserver/vmail_users.sls:
Steps to Reproduce Issue
salt mx3 state.sls mailserver/postfix
results in:salt mx3 state.sls mailserver.postfix
works as expectedVersions Report
Salt Version:
Salt: 2019.2.2
Dependency Versions:
cffi: 1.11.5
cherrypy: Not Installed
dateutil: 2.4.2
docker-py: Not Installed
gitdb: 0.6.4
gitpython: 1.0.1
ioflo: Not Installed
Jinja2: 2.8
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: Not Installed
Mako: 1.0.3
msgpack-pure: Not Installed
msgpack-python: 0.4.6
mysql-python: Not Installed
pycparser: 2.18
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: Not Installed
Python: 2.7.12 (default, Oct 8 2019, 14:14:10)
python-gnupg: 0.3.8
PyYAML: 3.11
PyZMQ: 15.2.0
RAET: Not Installed
smmap: 0.9.0
timelib: Not Installed
Tornado: 4.2.1
ZMQ: 4.1.4
System Versions:
dist: Ubuntu 16.04 xenial
locale: UTF-8
machine: x86_64
release: 4.4.110-mainline-rev1
system: Linux
version: Ubuntu 16.04 xenial
The text was updated successfully, but these errors were encountered: