Skip to content
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

Revert PR #49185 #49375

Merged
merged 6 commits into from Aug 29, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion conf/master
Expand Up @@ -125,7 +125,7 @@
# The master can take a while to start up when lspci and/or dmidecode is used
# to populate the grains for the master. Enable if you want to see GPU hardware
# data for your master.
# enable_gpu_grains: True
# enable_gpu_grains: False

# The master maintains a job cache. While this is a great addition, it can be
# a burden on the master for larger deployments (over 5000 minions).
Expand Down
5 changes: 5 additions & 0 deletions conf/minion
Expand Up @@ -148,6 +148,11 @@
# Set the directory used to hold unix sockets.
#sock_dir: /var/run/salt/minion

# The minion can take a while to start up when lspci and/or dmidecode is used
# to populate the grains for the minion. Set this to False if you do not need
# GPU hardware grains for your minion.
# enable_gpu_grains: True

# Set the default outputter used by the salt-call command. The default is
# "nested".
#output: nested
Expand Down
2 changes: 1 addition & 1 deletion conf/suse/master
Expand Up @@ -127,7 +127,7 @@ syndic_user: salt
# The master can take a while to start up when lspci and/or dmidecode is used
# to populate the grains for the master. Enable if you want to see GPU hardware
# data for your master.
# enable_gpu_grains: True
# enable_gpu_grains: False

# The master maintains a job cache. While this is a great addition, it can be
# a burden on the master for larger deployments (over 5000 minions).
Expand Down
4 changes: 2 additions & 2 deletions doc/man/salt.7
Expand Up @@ -5261,7 +5261,7 @@ sock_dir: /var/run/salt/master
.UNINDENT
.SS \fBenable_gpu_grains\fP
.sp
Default: \fBFalse\fP
Default: \fBTrue\fP
.sp
Enable GPU hardware data for your master. Be aware that the master can
take a while to start up when lspci and/or dmidecode is used to populate the
Expand Down Expand Up @@ -14347,7 +14347,7 @@ and \fBmine_functions\fP\&.
# The master can take a while to start up when lspci and/or dmidecode is used
# to populate the grains for the master. Enable if you want to see GPU hardware
# data for your master.
# enable_gpu_grains: True
# enable_gpu_grains: False

# The master maintains a job cache. While this is a great addition, it can be
# a burden on the master for larger deployments (over 5000 minions).
Expand Down
4 changes: 4 additions & 0 deletions doc/ref/configuration/master.rst
Expand Up @@ -446,6 +446,10 @@ Enable GPU hardware data for your master. Be aware that the master can
take a while to start up when lspci and/or dmidecode is used to populate the
grains for the master.

.. code-block:: yaml

enable_gpu_grains: True

.. conf_master:: job_cache

``job_cache``
Expand Down
16 changes: 16 additions & 0 deletions doc/ref/configuration/minion.rst
Expand Up @@ -707,6 +707,22 @@ The directory where Unix sockets will be kept.

sock_dir: /var/run/salt/minion

.. conf_minion:: enable_gpu_grains

``enable_gpu_grains``
---------------------

Default: ``True``

Enable GPU hardware data for your master. Be aware that the minion can
take a while to start up when lspci and/or dmidecode is used to populate the
grains for the minion, so this can be set to ``False`` if you do not need these
grains.

.. code-block:: yaml

enable_gpu_grains: False

.. conf_minion:: outputter_dirs

``outputter_dirs``
Expand Down
4 changes: 4 additions & 0 deletions salt/config/__init__.py
Expand Up @@ -414,6 +414,9 @@ def _gather_buffer_space():
# Tell the loader to attempt to import *.pyx cython files if cython is available
'cython_enable': bool,

# Whether or not to load grains for the GPU
'enable_gpu_grains': bool,

# Tell the loader to attempt to import *.zip archives
'enable_zip_modules': bool,

Expand Down Expand Up @@ -1264,6 +1267,7 @@ def _gather_buffer_space():
'test': False,
'ext_job_cache': '',
'cython_enable': False,
'enable_gpu_grains': True,
'enable_zip_modules': False,
'state_verbose': True,
'state_output': 'full',
Expand Down