Relative paths in SLS files (include and source)

463 views
Skip to first unread message

Rafael Gonzalez

unread,
Dec 13, 2013, 4:34:52 PM12/13/13
to salt-...@googlegroups.com
Sorry, folks, for this silly question.

I often refactor my state tree and find it cumbersome to rewrite the paths in "include" and "source: salt://<whatever>"

Is there any way to specify relarive paths in these two cases ?
I have searched the online  documentation and found nothing about relative paths. 
If it is there, I just could not find it :-(

Greetings
Rafael



Seth House

unread,
Dec 13, 2013, 5:44:22 PM12/13/13
to salt-...@googlegroups.com
You can have relative paths in ``include`` but not ``salt://`` (yet).

http://docs.saltstack.com/ref/states/include.html#relative-include

https://github.com/saltstack/salt/issues/4348
> --
> You received this message because you are subscribed to the Google Groups
> "Salt-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to salt-users+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Rafael Gonzalez

unread,
Dec 13, 2013, 6:09:51 PM12/13/13
to salt-...@googlegroups.com, se...@eseth.com
Thank you very much, at least I can fix include files.
 I hope that the salt:// relative path is implemented soon :-)
Reply all
Reply to author
Forward
0 new messages