Make changes proposed during review of restrict fact gathering feature:

* Make documentation examples into code blocks
* Make code to call the subsets more general.
* Made min subset always execute (cannot disable it).
* Use a passed in modules parameter rather than global modules.  This is needed for ziploader
* Remove unneeded __init__()
* Remove uneeded multiple inheritance from a base class
* gather_facts is now a list type
This commit is contained in:
Toshio Kuratomi
2016-03-14 09:45:28 -07:00
parent d665911bab
commit 5a1e35224b
3 changed files with 131 additions and 187 deletions

View File

@@ -355,7 +355,7 @@ This option can be useful for those wishing to save fact gathering time. Both 's
.. versionadded:: 2.1
You can specify a subset of gathered facts using the following options:
You can specify a subset of gathered facts using the following options::
gather_subset = all
@@ -367,7 +367,7 @@ You can specify a subset of gathered facts using the following options:
You can combine them using comma separated list (ex: min,network,virtual)
You can also disable puppet facter or chef ohai facts collection using following options:
You can also disable puppet facter or chef ohai facts collection using following options::
ignore_ohai = True
ignore_facter = True