mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
1.1 KiB
1.1 KiB
- Feature Name: adding_python_package_logic_to_loader
- Start Date: 2018-06-29
- RFC PR:
- Salt Issue:
Summary
Add support for python packages to the loader. Instead of just having
apache.py, we would have salt/modules/apache/__init__.py
, and all the other
modules under that directory loaded in the apache.<function>
namespace that
we already have.
Motivation
Split modules out into different git repositories, and allow the community more control to help maintain them.
Design
This should be pretty straight forward, we should be able to use the same _module_dirs that we are using now, and iterate over the files, and if they are a directory, then we load all of the modules underneath it into the namespace of the directory.
Heirarchy would be alphabetical, and we would need to log messages if the function exists in an earlier file that has been loaded.