Skip to content

Commit

Permalink
Merge pull request saltstack#39367 from gtmanfred/develop
Browse files Browse the repository at this point in the history
add extmod_blacklist to make it easier to remove modules
  • Loading branch information
Mike Place authored Feb 17, 2017
2 parents 13b254a + d332b33 commit deba6d2
Show file tree
Hide file tree
Showing 7 changed files with 260 additions and 91 deletions.
6 changes: 5 additions & 1 deletion doc/ref/configuration/master.rst
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ each of Salt's module types such as ``runners``, ``output``, ``wheel``,
extension_modules: /root/salt_extmods
``extmod_whitelist``
``extmod_whitelist/extmod_blacklist``
--------------------

.. versionadded:: Nitrogen
Expand All @@ -263,6 +263,10 @@ whitelist an empty list.
- custom_engine
pillars: []
extmod_blacklist:
modules:
- specific_module
Valid options:
- modules
- states
Expand Down
9 changes: 7 additions & 2 deletions doc/ref/configuration/minion.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1197,12 +1197,12 @@ below.
providers:
service: systemd
``extmod_whitelist``
``extmod_whitelist/extmod_blacklist``
--------------------

.. versionadded:: Nitrogen

By using this dictionary, the modules that are synced to the minion's extmod cache using `saltutil.sync_*`can be
By using this dictionary, the modules that are synced to the minion's extmod cache using `saltutil.sync_*` can be
limited. If nothing is set to a specific type, then all modules are accepted. To block all modules of a specific type,
whitelist an empty list.

Expand All @@ -1215,6 +1215,11 @@ whitelist an empty list.
- custom_engine
pillars: []
extmod_blacklist:
modules:
- specific_module
Valid options:
- beacons
- sdb
Expand Down
5 changes: 4 additions & 1 deletion salt/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -994,8 +994,9 @@ def _gather_buffer_space():
# to the master is attempted.
'scheduler_before_connect': bool,

# Whitelist specific modules to be synced
# Whitelist/blacklist specific modules to be synced
'extmod_whitelist': dict,
'extmod_blacklist': dict,

# django auth
'django_auth_path': str,
Expand Down Expand Up @@ -1257,6 +1258,7 @@ def _gather_buffer_space():
'scheduler_before_connect': False,
'cache': 'localfs',
'extmod_whitelist': {},
'extmod_blacklist': {},
}

DEFAULT_MASTER_OPTS = {
Expand Down Expand Up @@ -1537,6 +1539,7 @@ def _gather_buffer_space():
'min_extra_mods': '',
'ssl': None,
'extmod_whitelist': {},
'extmod_blacklist': {},
'clean_dynamic_modules': True,
'django_auth_path': '',
'django_auth_settings': '',
Expand Down
Loading

0 comments on commit deba6d2

Please sign in to comment.