Commit graph

194 commits

Author SHA1 Message Date
natalieswork
bd10d94449 removing references to Azure from existing files 2023-05-22 16:07:26 -04:00
jeanluc
49a77dbba7 Add x509_v2 modules 2022-12-22 08:00:41 -07:00
Sebastian Marsching
02a1ee476e Extend OpenVSwitch modules (closes #58986).
This adds the new openvswitch_db state module. It also  adds the new
functions bridge_to_parent, bridge_to_vlan, db_get, and db_set to the
openvswitch execution module.

Besides, it adds two new optional parameters parent and vlan to the
openvswitch_bridge.present state module function and the
openvswitch.bridge_create execution module function.
2022-12-09 19:43:03 +01:00
piterpunk
d1932fa3c5
Added sysfs state module to manage kernel objects 2022-10-21 13:24:12 -06:00
Twangboy
6050c91ff1
Add to toctree to fix docs build... hopefully 2022-10-17 17:32:35 -06:00
Twangboy
898cc3130e Fix some linting errors 2022-06-02 07:21:27 -06:00
Jamie Murphy
7f81bca162 doc update 2022-05-20 15:21:03 -04:00
Gareth J. Greenaway
fb825aa760
[merge jam] Master port 49261 - consul modules (#58101)
* add consul states and acl function present/absent

* add consul to states doc index

* refact/fix consul states

* fix doc, fix states

* fix name parameter for acl_changes

* fixing pylint errors

* small changes after review by @rallytime

* fix header count

* Update consul.py

* fix acl_exists description, fix when both id and name are missing

* Adding some tests for consul module and consul state module.  Some additional fixes in the consul module.

* Fixing tests.

* Fixing failing tests on Windows.

* Adding changelog.

* Adding some tests for consul module and consul state module.  Some additional fixes in the consul module.

* moving tests to pytest.

* manual black changes.

* One more manual black change.

* fixing formatting.  Adding versionadded for state module.

Co-authored-by: Rémi Jouannet <remi.jouannet@outscale.com>
Co-authored-by: Mike Place <mp@saltstack.com>
Co-authored-by: Daniel Wozniak <dwozniak@saltstack.com>
Co-authored-by: Wayne Werner <wwerner@vmware.com>
2022-01-20 16:19:58 -05:00
Megan Wilhite
3c7c922ff5 Remove glance state module in favor of glance_image 2021-03-18 10:42:29 -04:00
Tyler Johnson
4684a0b585 added idem exec and state modules 2020-08-12 13:55:34 -07:00
David Hilton
1c7ce9d793
merge nxos-specific work from develop into master. (#54931)
* Combine proxy and native minion workflows for NXOS

 - Normalize SSH and NX-API proxy minion workflows
 - Add NX-API over unix domain socket support for native minions

* Fix typo

* Fix states correct_roles bug

* Add comment clarification for nxos states

* Fix lint issues

* Address python3 incompatibility

* Fix additional lint issues

* Disable pylint W1699 warning

* Use new style class syntax

* Correct typo

* Fix nxos grains

* Pass data to grains function

* Return nxos grains key

* Protect nxos grain with proper __virtual__() check

The changes in PR #49676 made the following stacktrace occur when running
on a system that doesn't have the proper NXOS/NXAPIClient settings exposed:

```
[CRITICAL] Failed to load grains defined in grain file nxos.system_information in function <function system_information at 0x3aeb758>, error:
Traceback (most recent call last):
  File "/testing/salt/loader.py", line 773, in grains
    ret = funcs[key](**kwargs)
  File "/testing/salt/grains/nxos.py", line 36, in system_information
    data = salt.utils.nxos.version_info()
  File "/testing/salt/utils/nxos.py", line 318, in version_info
    client = NxapiClient()
  File "/testing/salt/utils/nxos.py", line 78, in __init__
    raise RuntimeError("No host specified and no UDS found at {0}\n".format(self.NXAPI_UDS))
RuntimeError: No host specified and no UDS found at /tmp/nginx_local/nginx_1_be_nxapi.sock

local:
    True
```

We need to protect the grains from loading when the settings are missing.

* Initial nxos_upgrade changes

* Revert "Initial nxos_upgrade changes"

This reverts commit e17ca19fbc.

* New NX-OS salt minion install doc

* Add guestshell sync information

* Initial nxos_upgrade changes

* Initial nxos_upgrade changes

* Revert "Initial nxos_upgrade changes"

This reverts commit e17ca19fbc.

* Revert "Initial nxos_upgrade changes"

This reverts commit e17ca19fbc.

* Add nxos to index.rst

* New nxos_upgrade execution and state modules

* Added NXOS UT support - initially for nxos_upgrade.py

* Resolved one pylint 'old class style' issue.  Excluding 'nxos' sub-directory under tests/unit/modules

* Add __init__.py file to treat directory as a package directory.

* Addressed PR comments.

* Removed pylint disable-msg that was only applicable to python 3+

* Document NAPALM installation inside Guestshell

Adding step-by-step guide to install NAPALM inside of the NXOS Guestshell.

* show and sendline method fixes

* Update doc for starting minion in nxos GuestShell

* Revert show method changes

* Revert sendline method doc changes

* Resolve lint errors

* Remove nxos guestshell napalm references

This work is delayed so removing the references

* Address review comments

* Address salt style guide comment

* Doc and module updates

* Initial nxos module and proxy unit tests

* Additional nxos module and proxy unit tests

* Add nxos state unit tests

* Add tests for replace function

* Bug fixes

* Fix test_check_password_password_encrypted_false test

* Add test_config_nxos_error_ssh test

* remove opts modification in init

* reduce scope of variable to function where it's used

* minor nxos cleanup - raise instead of exit, use named kwargs

* use create_autospec in place of raw mocks

* _init_ssh's raise is now caught by ping

* allow gen_hash to work on any system

* change no_save_config option to save_config

* update set_password to work with updated gen_hash

* passing an invalid algorithm to pycrypto.hash raises

* blacken nxos-related files

* _fallback_gen_hash also works without a password

* remove debugging line, improve error message

* lint and black

* nxos docfix

* remove unused variable

* Review comments addressed

* mark old nxos functions as deprecated

* black

* remove unused variables

* clean up arguments

* simplify save_config logic

* minor doc cleanup

* make sendline with a list of commands reliably work

* Update various doc index files for nxos_upgrade

* Fix a few bugs in nxos proxy and execution modules

* doc indent fix

Co-authored-by: mikewiebe <mwiebe@cisco.com>
Co-authored-by: rallytime <nicole@saltstack.com>
Co-authored-by: Thomas Stoner <tmstoner@cisco.com>
Co-authored-by: tstoner <33665760+tstoner@users.noreply.github.com>
Co-authored-by: Chris Van Heuveln <cvanheuv@cisco.com>
2020-05-04 01:13:07 -07:00
Daniel Wozniak
a9ebb98d5d
Merge pull request #52699 from aplanas/fix_brtfs
btrfs: Add properties state
2020-04-22 12:01:00 -07:00
Erik Johnson
45b5db7dbc Add missing RST stubs for new helm state/exec module
https://github.com/saltstack/salt/pull/56081 was merged several hours
ago, breaking the docs checks. This adds the needed RST files to ensure
docs files are created for this new module.
2020-04-18 09:18:27 -05:00
Alberto Planas
7099192745 btrfs: add btrfs state doc file 2020-04-17 16:24:13 +02:00
Christian McHugh
ebf8417c61 Add max-arnold's tests and associated cleanup 2020-03-13 08:29:27 +00:00
Christian McHugh
35880c7c17 don't include unmerged zabbix_service state 2020-01-19 07:50:34 +00:00
Christian McHugh
4b45eab103 don't include unmerged saltsupport state 2020-01-19 07:49:22 +00:00
Christian McHugh
ef56dc3327 don't include unmerged postgres_default_privileges 2020-01-19 07:48:17 +00:00
Christian McHugh
f50b09abd9 don't include unmerged nova state 2020-01-19 07:46:21 +00:00
Christian McHugh
b5d2e5a438 update for current state of master 2020-01-19 07:21:06 +00:00
Megan Wilhite
d8b505ed2f Merge pull request #52368 from mchugh19/doc_tests
Unit test to require execution module documentation
2020-01-19 06:56:24 +00:00
Christian McHugh
3ed1236936 Merge branches 'salt-check-fullmerge' and 'salt-check-fullmerge' of github.com:mchugh19/salt into salt-check-fullmerge 2020-01-05 07:40:38 +00:00
Daniel Wozniak
caec765fd0
Merge pull request #55768 from ogd-software/boto3_elasticsearch-master
Boto3 elasticsearch master
2020-01-02 09:18:49 -07:00
Herbert Buurman
958b3d1084
Added and fixed documentation. 2019-12-31 10:26:39 +01:00
Herbert Buurman
d50d7de48d
Doc updates.
Fixed docstring for salt/states/rabbitmq_upstream.py:present
2019-12-31 10:07:53 +01:00
Christian McHugh
44adc6f302
Merge branch 'master' into port-49822 2019-12-13 07:11:28 +00:00
Daniel Wozniak
318a75464a
Merge branch 'master' into port-52126 2019-11-20 00:58:55 -07:00
Christian McHugh
53370722d9
Merge branch 'master' into port-51949 2019-11-13 06:49:56 +00:00
Gareth J. Greenaway
9803a434d2 Merge pull request #52126 from mchugh19/keystore
Add keystore execution and state modules
2019-10-13 21:59:16 +01:00
Shane Lee
94212a8b42 Merge pull request #52217 from mchugh19/xml_doc
include xml state/module in docs
2019-10-13 10:02:41 +01:00
Shane Lee
752023aac4 Merge pull request #51900 from max-arnold/saltutil-sync
Add missing saltutil.sync_* states
2019-10-13 09:53:04 +01:00
Gareth J. Greenaway
0c251cf919 Merge pull request #51996 from mchugh19/remove_hipchat
Add release note about hipchat removal
2019-10-13 09:28:52 +01:00
twangboy
97553cf889
Add docs for win_wusa 2019-10-07 17:33:49 -06:00
Ch3LL
af0537fa39
Add azure state and execution modules to doc index 2019-03-07 12:00:08 -05:00
Gareth J. Greenaway
e37fc20e7c
Merge branch '2018.3' into merge-2018.3
Conflicts:
  - doc/ref/modules/all/index.rst
  - salt/states/file.py
  - tests/unit/modules/test_yumpkg.py
  - tests/unit/modules/test_zypperpkg.py
  - tests/unit/states/test_file.py
2019-02-22 16:38:15 -08:00
Daniel Wallace
33bb5bfe69
fix use of virtualname
Make sure that the virtualname is included in the actual filename of
core modules.  This will help speed up loading of modules that need to
use the virtualname, so that we hit @depends decorators less.
2019-02-19 13:16:06 -06:00
rallytime
82e73fe49d
Merge branch '2018.3' into 'fluorine'
Conflicts:
  - doc/ref/tops/all/index.rst
  - salt/fileclient.py
  - salt/grains/core.py
  - salt/modules/win_file.py
  - salt/pillar/__init__.py
  - salt/utils/http.py
2018-10-18 10:41:42 -04:00
Cody Crawford
2e46a783c5
Expose docs for Ansible modules 2018-10-15 13:01:22 -04:00
Erik Johnson
04a80673a2
Clean up Sphinx build errors in develop branch 2018-06-06 20:19:44 -05:00
rallytime
7dc1e770c4
Merge branch '2018.3' into 'develop'
Conflicts:
  - doc/topics/installation/freebsd.rst
  - salt/cloud/clouds/oneandone.py
  - salt/grains/core.py
  - salt/modules/napalm_ntp.py
  - salt/modules/win_update.py
  - salt/modules/win_wua.py
  - salt/modules/zabbix.py
  - salt/renderers/pass.py
  - salt/states/vault.py
  - tests/unit/states/test_win_update.py
2018-06-06 13:35:36 -04:00
Erik Johnson
f89d2ccd30
Clean up Sphinx warnings 2018-06-06 08:42:21 -05:00
rallytime
969296ecbe
Merge branch '2018.3' into 'develop'
No conflicts.
2018-05-15 12:38:01 -04:00
rallytime
b330d763a4
Remove infoblox state autodoc file
This state does not exist. There is an execution module named infoblox, and
several other infoblox_x state fails, but not a pure infoblox.py state module.
2018-05-09 14:06:55 -04:00
rallytime
b88a228e5c
Update zabbix state module doc references
The references in the index.rst file are necessary to build the zabbix
state module docs.
2018-05-09 11:59:39 -04:00
rallytime
53d2851826
Merge branch '2018.3' into 'develop'
Conflicts:
  - salt/netapi/rest_tornado/saltnado.py
  - salt/pillar/pillar_ldap.py
  - tests/integration/netapi/rest_tornado/test_app.py
2018-05-07 14:13:34 -04:00
Daniel Wallace
c86163d79f
add openstack modules to doc index.rst 2018-05-07 08:11:08 -05:00
rallytime
2c4668a5cb
Merge branch '2018.3' into 'develop'
Conflicts:
  - salt/modules/kubernetes.py
  - salt/states/netconfig.py
  - salt/states/zfs.py
  - tests/integration/cloud/providers/test_profitbricks.py
  - tests/integration/scheduler/test_eval.py
  - tests/unit/grains/test_core.py
  - tests/unit/test_pillar.py
2018-03-27 11:57:29 -04:00
Ch3LL
6eab6a7dc4
add autodoc topics for infoblox state modules 2018-03-19 11:06:37 -04:00
Nicole Thomas
7b1b06e327
Merge pull request #45528 from spenceation/panos-autodoc
Updating autodoc for PANOS modules.
2018-01-18 17:53:37 -05:00
Spencer Ervin
eae111739d Updating autodoc for CIMC modules. 2018-01-18 11:21:42 -05:00