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

[2018.3] Merge forward from 2017.7 to 2018.3 #49693

Merged
merged 6 commits into from Sep 18, 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
1 change: 1 addition & 0 deletions doc/conf.py
Expand Up @@ -65,6 +65,7 @@ def next(self):
'user',

# salt core
'concurrent',
'Crypto',
'Crypto.Signature',
'Crypto.Cipher',
Expand Down
6 changes: 3 additions & 3 deletions doc/ref/modules/index.rst
Expand Up @@ -137,7 +137,7 @@ call functions available in other execution modules.
The variable ``__salt__`` is packed into the modules after they are loaded into
the Salt minion.

The ``__salt__`` variable is a :ref:`Python dictionary <typesmapping>`
The ``__salt__`` variable is a :ref:`Python dictionary <python:typesmapping>`
containing all of the Salt functions. Dictionary keys are strings representing
the names of the modules and the values are the functions themselves.

Expand Down Expand Up @@ -176,7 +176,7 @@ Grains Data
-----------

The values detected by the Salt Grains on the minion are available in a
:ref:`Python dictionary <typesmapping>` named ``__grains__`` and can be
:ref:`Python dictionary <python:typesmapping>` named ``__grains__`` and can be
accessed from within callable objects in the Python modules.

To see the contents of the grains dictionary for a given system in your
Expand Down Expand Up @@ -288,7 +288,7 @@ Virtual module names are set using the ``__virtual__`` function and the
``__virtual__`` Function
========================

The ``__virtual__`` function returns either a :ref:`string <typesseq>`,
The ``__virtual__`` function returns either a :ref:`string <python:typesseq>`,
:py:data:`True`, :py:data:`False`, or :py:data:`False` with an :ref:`error
string <modules-error-info>`. If a string is returned then the module is loaded
using the name of the string as the virtual name. If ``True`` is returned the
Expand Down
2 changes: 1 addition & 1 deletion doc/ref/states/writing.rst
Expand Up @@ -190,7 +190,7 @@ functions available in other state modules.
The variable ``__states__`` is packed into the modules after they are loaded into
the Salt minion.

The ``__states__`` variable is a :ref:`Python dictionary <typesmapping>`
The ``__states__`` variable is a :ref:`Python dictionary <python:typesmapping>`
containing all of the state modules. Dictionary keys are strings representing
the names of the modules and the values are the functions themselves.

Expand Down
4 changes: 2 additions & 2 deletions doc/topics/grains/index.rst
Expand Up @@ -125,8 +125,8 @@ The grains are derived by executing all of the "public" functions (i.e. those
which do not begin with an underscore) found in the modules located in the
Salt's core grains code, followed by those in any custom grains modules. The
functions in a grains module must return a :ref:`Python dictionary
<typesmapping>`, where the dictionary keys are the names of grains, and each
key's value is that value for that grain.
<python:typesmapping>`, where the dictionary keys are the names of grains, and
each key's value is that value for that grain.

Custom grains modules should be placed in a subdirectory named ``_grains``
located under the :conf_master:`file_roots` specified by the master config
Expand Down
2 changes: 1 addition & 1 deletion doc/topics/jinja/index.rst
Expand Up @@ -177,7 +177,7 @@ Saltstack extends `builtin filters`_ with these custom filters:

Converts any time related object into a time based string. It requires valid
strftime directives. An exhaustive list can be found :ref:`here
<strftime-strptime-behavior>` in the Python documentation.
<python:strftime-strptime-behavior>` in the Python documentation.

.. code-block:: jinja

Expand Down
11 changes: 4 additions & 7 deletions salt/pillar/cmd_yamlex.py
@@ -1,15 +1,12 @@
# -*- coding: utf-8 -*-
'''
Execute a command and read the output as YAMLEX. The YAMLEX data is then
directly overlaid onto the minion's Pillar data
'''

# Don't "fix" the above docstring to put it on two lines, as the sphinx
# autosummary pulls only the first line for its description.
Execute a command and read the output as YAMLEX.

from __future__ import absolute_import, print_function, unicode_literals
The YAMLEX data is then directly overlaid onto the minion's Pillar data
'''

# Import python libs
from __future__ import absolute_import, print_function, unicode_literals
import logging

# Import salt libs
Expand Down
2 changes: 1 addition & 1 deletion salt/pillar/makostack.py
Expand Up @@ -103,7 +103,7 @@
- baz

MakoStack configuration files
-------------------------------
-----------------------------

The config files that are referenced in the above ``ext_pillar`` configuration
are mako templates which must render as a simple ordered list of ``yaml``
Expand Down
4 changes: 2 additions & 2 deletions salt/pillar/mysql.py
Expand Up @@ -12,7 +12,7 @@
:platform: all

Configuring the mysql ext_pillar
=====================================
================================

Use the 'mysql' key under ext_pillar for configuration of queries.

Expand All @@ -22,7 +22,7 @@
Required python modules: MySQLdb

Complete example
=====================================
================

.. code-block:: yaml

Expand Down
4 changes: 2 additions & 2 deletions salt/pillar/postgres.py
Expand Up @@ -8,8 +8,8 @@
:depends: psycopg2
:platform: all

Complete example
=====================================
Complete Example
================

.. code-block:: yaml

Expand Down
4 changes: 2 additions & 2 deletions salt/pillar/sql_base.py
Expand Up @@ -10,7 +10,7 @@
:platform: all

Theory of sql_base ext_pillar
=====================================
=============================

Ok, here's the theory for how this works...

Expand All @@ -32,7 +32,7 @@
exact settings.

Configuring a sql_base ext_pillar
=====================================
=================================

The sql_base ext_pillar cannot be used directly, but shares query configuration
with its implementations. These examples use a fake 'sql_base' adapter, which
Expand Down
4 changes: 2 additions & 2 deletions salt/pillar/sqlcipher.py
Expand Up @@ -37,8 +37,8 @@
pass: strong_pass_phrase
timeout: 5.0

Complete example
=================
Complete Example
================

.. code-block:: yaml

Expand Down