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
custom execution modules not working #176
Comments
Hi. Can you try with |
Of course:
Result is the same though. |
Nevermind, it is in there... 🙄 |
@syntax-terr0r could you try #177 to confirm it fixes this? If you're unable to apply the patch, just setting |
I can confirm that setting
Thanks for the quick fix! |
Describe the bug
Custom execution modules placed in the
salt://_modules
directory can not be executed.Steps To Reproduce
Expected behavior
Expect the custom module to execute and return "True"
Versions Report
Additional context
I followed the documentation for creating custom execution modules here:
https://docs.saltstack.com/en/latest/ref/modules/
as well as your blog:
https://mirceaulinic.net/2019-04-24-extending-napalm-salt/
https://mirceaulinic.net/2019-06-17-minionless-salt-automation/
This is my file_roots config:
Running standard modules on the minion works fine:
Running
saltutil.sync_all
,saltutil.sync_modules
,sys.reload_modules
orsaltutil.refresh_modules
does not change the outcome. As I understand, running these commands should also not be necessary with salt-sproxy because the modules are loaded on runtime.The only way I have found to make this work is to place the module either in
/usr/lib/python3/dist-packages/salt/modules/
or/usr/local/lib/python3.7/dist-packages/salt_sproxy/_modules/
:I'm relatively new to salt and salt-sproxy so I can't rule out that I'm missing something simple here.
However I'm unable to figure out what it might be.
The text was updated successfully, but these errors were encountered: