Skip to content

Commit

Permalink
Merge pull request saltstack#52729 from DSRCorporation/merge-deveop
Browse files Browse the repository at this point in the history
[develop] Merge forward from 2019.2 to deveop
  • Loading branch information
s0undt3ch authored May 9, 2019
2 parents 1cbf79a + 1d836a6 commit 2aa1832
Show file tree
Hide file tree
Showing 180 changed files with 4,133 additions and 2,094 deletions.
2 changes: 2 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ plugins:
checks:
argument-count:
enabled: false
file-lines:
enabled: false
similar-code:
config:
threshold: 40
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/src
*.py[co]
pkg/arch/*.tar.xz
*.sw[pon]
*.sw[a-p]
doc/_build
dist
MANIFEST
Expand Down Expand Up @@ -85,6 +85,9 @@ tests/unit/templates/roots
# Pycharm
.idea

# VS Code
.vscode

# Ignore the log directory created by tests
/logs
tests/integration/cloud/providers/logs
Expand Down
4 changes: 2 additions & 2 deletions doc/ref/cli/salt-unity.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Synopsis

.. code-block:: bash
salt-unity salt '*' test.ping
salt-unity salt '*' test.version
Description
===========
Expand All @@ -35,4 +35,4 @@ See also
:manpage:`salt-minion(1)`
:manpage:`salt-run(1)`
:manpage:`salt-ssh(1)`
:manpage:`salt-syndic(1)`
:manpage:`salt-syndic(1)`
4 changes: 2 additions & 2 deletions doc/ref/cli/salt.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ Synopsis

salt -E '.*' [ options ] sys.doc cmd

salt -G 'os:Arch.*' [ options ] test.ping
salt -G 'os:Arch.*' [ options ] test.version

salt -C 'G@os:Arch.* and webserv* or G@kernel:FreeBSD' [ options ] test.ping
salt -C 'G@os:Arch.* and webserv* or G@kernel:FreeBSD' [ options ] test.version

Description
===========
Expand Down
19 changes: 10 additions & 9 deletions doc/ref/configuration/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -199,30 +199,31 @@ Sending Commands
================

Communication between the Master and a Minion may be verified by running
the ``test.ping`` command:
the ``test.version`` command:

.. code-block:: bash
[root@master ~]# salt alpha test.ping
[root@master ~]# salt alpha test.version
alpha:
True
2018.3.4
Communication between the Master and all Minions may be tested in a
similar way:

.. code-block:: bash
[root@master ~]# salt '*' test.ping
[root@master ~]# salt '*' test.version
alpha:
True
2018.3.4
bravo:
True
2018.3.4
charlie:
True
2018.3.4
delta:
True
2018.3.4
Each of the Minions should send a ``True`` response as shown above.
Each of the Minions should send a ``2018.3.4`` response as shown above,
or any other salt version installed.

What's Next?
============
Expand Down
4 changes: 2 additions & 2 deletions doc/ref/executors/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ The same could be done by command line:

.. code-block:: bash
salt -t 40 --module-executors='[splay, direct_call]' --executor-opts='{splaytime: 30}' '*' test.ping
salt -t 40 --module-executors='[splay, direct_call]' --executor-opts='{splaytime: 30}' '*' test.version
And the same command called via netapi will look like this:

Expand All @@ -43,7 +43,7 @@ And the same command called via netapi will look like this:
-d '[{
"client": "local",
"tgt": "*",
"fun": "test.ping",
"fun": "test.version",
"module_executors": ["splay", "direct_call"],
"executor_opts": {"splaytime": 10}
}]'
Expand Down
6 changes: 3 additions & 3 deletions doc/ref/peer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ comes with a number of functions to execute peer communication in different
ways. Currently there are three functions in the publish module. These examples
will show how to test the peer system via the salt-call command.

To execute test.ping on all minions:
To execute test.version on all minions:

.. code-block:: bash
# salt-call publish.publish \* test.ping
# salt-call publish.publish \* test.version
To execute the manage.up runner:

Expand All @@ -123,7 +123,7 @@ To match minions using other matchers, use ``tgt_type``:

.. code-block:: bash
# salt-call publish.publish 'webserv* and not G@os:Ubuntu' test.ping tgt_type='compound'
# salt-call publish.publish 'webserv* and not G@os:Ubuntu' test.version tgt_type='compound'
.. note::
In pre-2017.7.0 releases, use ``expr_form`` instead of ``tgt_type``.
24 changes: 12 additions & 12 deletions doc/ref/returners/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,18 @@ Specifying what returners to use is done when the command is invoked:

.. code-block:: bash
salt '*' test.ping --return redis_return
salt '*' test.version --return redis_return
This command will ensure that the redis_return returner is used.

It is also possible to specify multiple returners:

.. code-block:: bash
salt '*' test.ping --return mongo_return,redis_return,cassandra_return
salt '*' test.version --return mongo_return,redis_return,cassandra_return
In this scenario all three returners will be called and the data from the
test.ping command will be sent out to the three named returners.
test.version command will be sent out to the three named returners.

Writing a Returner
==================
Expand All @@ -61,13 +61,13 @@ Other optional functions can be included to add support for
``returner``
The ``returner`` function must accept a single argument. The argument
contains return data from the called minion function. If the minion
function ``test.ping`` is called, the value of the argument will be a
function ``test.version`` is called, the value of the argument will be a
dictionary. Run the following command from a Salt master to get a sample
of the dictionary:

.. code-block:: bash
salt-call --local --metadata test.ping --out=pprint
salt-call --local --metadata test.version --out=pprint
.. code-block:: python
Expand Down Expand Up @@ -246,12 +246,12 @@ Sample:
"master_minion": {
"fun_args": [],
"jid": "20150330121011408195",
"return": true,
"return": "2018.3.4",
"retcode": 0,
"success": true,
"cmd": "_return",
"_stamp": "2015-03-30T12:10:12.708663",
"fun": "test.ping",
"fun": "test.version",
"id": "master_minion"
}
}
Expand All @@ -267,9 +267,9 @@ Sample:
{
"local": {
"minion1": "test.ping",
"minion3": "test.ping",
"minion2": "test.ping"
"minion1": "test.version",
"minion3": "test.version",
"minion2": "test.version"
}
}
Expand Down Expand Up @@ -344,15 +344,15 @@ Testing the Returner
The ``returner``, ``prep_jid``, ``save_load``, ``get_load``, and
``event_return`` functions can be tested by configuring the
:conf_master:`master_job_cache` and `Event Returners`_ in the master config
file and submitting a job to ``test.ping`` each minion from the master.
file and submitting a job to ``test.version`` each minion from the master.

Once you have successfully exercised the Master Job Cache functions, test the
External Job Cache functions using the ``ret`` execution module.

.. code-block:: bash
salt-call ret.get_jids cassandra_cql --output=json
salt-call ret.get_fun cassandra_cql test.ping --output=json
salt-call ret.get_fun cassandra_cql test.version --output=json
salt-call ret.get_minions cassandra_cql --output=json
salt-call ret.get_jid cassandra_cql 20150330121011408195 --output=json
Expand Down
2 changes: 1 addition & 1 deletion doc/ref/runners/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,6 @@ responding to Salt calls could look like this:
Print a list of all of the minions that are up
'''
client = salt.client.LocalClient(__opts__['conf_file'])
minions = client.cmd('*', 'test.ping', timeout=1)
minions = client.cmd('*', 'test.version', timeout=1)
for minion in sorted(minions):
print minion
4 changes: 2 additions & 2 deletions doc/topics/blackout/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ or the special grains key ``minion_blackout_whitelist``, which is formed as a li
.. code-block:: yaml
minion_blackout_whitelist:
- test.ping
- pillar.get
- test.version
- pillar.get
When use a special pillar key ``minion_blackout`` then salt will get ``minion_blackout_whitelist`` from the
pillar keys. And will get it from the grains when use ``minion_blackout`` as a special grains key.
Expand Down
2 changes: 1 addition & 1 deletion doc/topics/cloud/aws.rst
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ it can be verified with Salt:

.. code-block:: bash
# salt 'ami.example.com' test.ping
# salt 'ami.example.com' test.version
Required Settings
Expand Down
2 changes: 1 addition & 1 deletion doc/topics/cloud/azure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ it can be verified with Salt:

.. code-block:: bash
salt newinstance test.ping
salt newinstance test.version
Profile Options
Expand Down
2 changes: 1 addition & 1 deletion doc/topics/cloud/azurearm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ it can be verified with Salt:

.. code-block:: bash
salt newinstance test.ping
salt newinstance test.version
Profile Options
Expand Down
8 changes: 4 additions & 4 deletions doc/topics/cloud/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ Minion Configuration
====================

The default minion configuration is set up in this file. Minions created by
salt-cloud derive their configuration from this file. Almost all parameters
found in :ref:`Configuring the Salt Minion <configuration-salt-minion>` can
be used here.
salt-cloud derive their configuration from this file. Almost all parameters
found in :ref:`Configuring the Salt Minion <configuration-salt-minion>` can be
used here.

.. code-block:: yaml
Expand All @@ -44,7 +44,7 @@ and its listening port, if the port is not set to the default.
Similar to most other settings, Minion configuration settings are inherited
across configuration files. For example, the master setting might be contained
in the main ``cloud`` configuration file as demonstrated above, but additional
settings can be placed in the provider or profile:
settings can be placed in the provider, profile or map configuration files:

.. code-block:: yaml
Expand Down
2 changes: 1 addition & 1 deletion doc/topics/cloud/deploy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ Post-Deploy Commands
Once a minion has been deployed, it has the option to run a salt command.
Normally, this would be the :py:func:`state.apply <salt.modules.state.apply_>`,
which would finish provisioning the VM. Another common option (for testing) is
to use :py:func:`test.ping <salt.modules.test.ping>`. This is configured in the
to use :py:func:`test.version <salt.modules.test.version>`. This is configured in the
main cloud config file:

.. code-block:: yaml
Expand Down
2 changes: 1 addition & 1 deletion doc/topics/cloud/gce.rst
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ it can be verified with Salt:

.. code-block:: bash
salt gce-instance test.ping
salt gce-instance test.version
GCE Specific Settings
Expand Down
2 changes: 1 addition & 1 deletion doc/topics/cloud/libvirt.rst
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ it can be verified with Salt:

.. code-block:: bash
# salt my-centos7-clone test.ping
# salt my-centos7-clone test.version
Required Settings
Expand Down
2 changes: 1 addition & 1 deletion doc/topics/cloud/linode.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ it can be verified with Salt:

.. code-block:: bash
salt linode-instance test.ping
salt linode-instance test.version
Listing Sizes
Expand Down
2 changes: 1 addition & 1 deletion doc/topics/cloud/opennebula.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Once the instance has been created with salt-minion installed, connectivity to i

.. code-block:: bash
salt my-new-vm test.ping
salt my-new-vm test.version
OpenNebula uses an image --> template --> virtual machine paradigm where the template draws on the image, or disk,
and virtual machines are created from templates. Because of this, there is no need to define a ``size`` in the cloud
Expand Down
2 changes: 1 addition & 1 deletion doc/topics/cloud/parallels.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ it can be verified with Salt:

.. code-block:: bash
# salt myubuntu test.ping
# salt myubuntu test.version
Required Settings
Expand Down
2 changes: 1 addition & 1 deletion doc/topics/cloud/proxmox.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ it can be verified with Salt:

.. code-block:: bash
# salt myubuntu test.ping
# salt myubuntu test.version
Required Settings
Expand Down
4 changes: 2 additions & 2 deletions doc/topics/cloud/saltify.rst
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ Connectivity to the new "Salted" instances can now be verified with Salt:

.. code-block:: bash
salt 'my-instance-*' test.ping
salt 'my-instance-*' test.version
Bulk Deployments
----------------
Expand Down Expand Up @@ -251,7 +251,7 @@ Credential Verification
Because the Saltify driver does not actually create VM's, unlike other
salt-cloud drivers, it has special behaviour when the ``deploy`` option is set
to ``False``. When the cloud configuration specifies ``deploy: False``, the
Saltify driver will attept to authenticate to the target node(s) and return
Saltify driver will attempt to authenticate to the target node(s) and return
``True`` for each one that succeeds. This can be useful to verify ports,
protocols, services and credentials are correctly configured before a live
deployment.
Expand Down
6 changes: 3 additions & 3 deletions doc/topics/cloud/softlayer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,9 @@ with its short hostname, ``my-vm``):
Rejected Keys:
#
#
# salt my-vm.example.com test.ping
# salt my-vm.example.com test.version
my-vm.example.com:
True
2018.3.4
#
#
# salt-cloud -d my-vm.example.com
Expand Down Expand Up @@ -334,7 +334,7 @@ it can be verified with Salt:

.. code-block:: bash
# salt 'myserver.example.com' test.ping
# salt 'myserver.example.com' test.version
Dedicated Host
~~~~~~~~~~~~~~
Expand Down
Loading

0 comments on commit 2aa1832

Please sign in to comment.