Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Reusing states in custom state modules #3513
With reference to #3460, I tried to create my own state
In fact, it might be the best approach, as it would be possible to keep the SLS at YAML, possibly with templating, while all Python would be in proper Python modules.
Unfortunately, the following does not work:
as the file.managed() function needs access to the lazy loader
It has been suggested to me to use execution modules directly, but that would mean I'd have to reimplement large portions of
It has also been suggested to do something like
and while that might very well work, it seems like a lot of overhead and overkill.
Please provide a means by which custom state modules (and state modules in general) can reuse functionality from other state modules easily, without having to go full-circle around the command publisher.
referenced this issue
Jan 30, 2013
(Yes, it does work, see http://git.madduck.net/v/salt/sls/sudo.git/commitdiff/c9a9ccdb975b3f9702d33097bc1ea03b268df3f2)