Commit graph

333 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
Twangboy
6050c91ff1
Add to toctree to fix docs build... hopefully 2022-10-17 17:32:35 -06:00
Twangboy
a9425ffbdf Add tests, fix filtering, free text queries 2022-10-03 14:00:03 -06:00
cmcmarrow
44ad2b98d9 adds win_event_viewer 2022-10-03 14:00:03 -06:00
Twangboy
898cc3130e Fix some linting errors 2022-06-02 07:21:27 -06:00
Victor Zhestkov
d4d2f0cdd5 Add doc and test fixes 2022-05-26 09:01:22 -07:00
Jamie Murphy
7f81bca162 doc update 2022-05-20 15:21:03 -04:00
Thomas Phipps
062637a17e
yaml modules for working towards troubleshooting easement (#61183)
* create a yamllint utils module. as well as a yaml module that will
eventually be yaml tools to help in troubleshooting yaml
functionality.

* included unit tests for the yaml module. also not happy about moving
from __salt__.module.function to __salt__["module.function"] for the
test to work

* added pre_render test and minor correct to heredoc in yamllint

* changelog

* fix tests running in py3.5, also try and fix pre-commit.

* attempt to fix pre-commit

* still trying to fix pre-commit.

* forgot freebsd, added yamllint to freebsd

* update adding versionadded and depends

* fix pre-commit?

* fix pre-commit

* attempt to fix pre-commit again

Co-authored-by: Megan Wilhite <mwilhite@vmware.com>
2022-04-06 14:53:21 -04:00
Alberto Planas
1ce3606cdb transactional_update: add documentation 2021-08-24 12:11:21 -04:00
Megan Wilhite
3c7c922ff5 Remove glance state module in favor of glance_image 2021-03-18 10:42:29 -04:00
piterpunk
cba1ad3206 Added unit tests to slackware_service.py module
- Added tests/init/modules/test_slackware_service.py
- Fixed the permission mask on slackware_service.py
- Added slackware_service in index.rst
2020-09-23 13:04:45 -07:00
Tyler Johnson
4684a0b585 added idem exec and state modules 2020-08-12 13:55:34 -07:00
gwiyeong
d0dff37419
Fix mismatch function argument between cassandra_cql and cassandra_cql_return (#56404)
* Revert "Support original API"

This reverts commit 377fbbc7b7.

* add test case for cassandra_cql async param

* remove warning message
add test for async args

* mocking cassandra.query.dict_factory to avoid test failure

* Blacken changed files

* add cassandra-driver at requirements/static/linux.in
change virtualname for salt/module/cassandra

* add missing asynchronous args

* add diff from jenkins instend running pre-commit

* add diff from jenkins instend of running pre-commit after merged with
master

* changed name salt/module/cassandra.py to salt/module/cassandra_mod.py and set its __virtualname__ is 'cassandra'
add cassandra to mac, window requirements.

* fix for pre-commit
change cassandra test module name

* Fix req files

* Add reqs again

Co-authored-by: Daniel A. Wozniak <dwozniak@saltstack.com>
Co-authored-by: Joe Eacott <31625359+xeacott@users.noreply.github.com>
Co-authored-by: Joe Eacott <jeacott22@hotmail.com>
2020-05-21 15:42:40 -07:00
Alberto Planas
0d6b43d01c devinfo: Add new module devinfo
devinfo is a new module designed to get hardware information. It
provides and API to access the output of hwinfo, and a set of functions
to filter udev information.
2020-05-18 14:34:22 -07:00
Alberto Planas
d4cfc32cc4 kubeadm: add initial module for kubeadm 2020-05-18 12:56:13 -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
b035ba07f6
Merge branch 'master' into baredoc_ast 2020-04-19 19:37:35 -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
Christian McHugh
d30e78f908 add docs 2020-04-18 06:57:48 +01:00
Christian McHugh
163818033e Merge branch 'master' into doctest_master 2020-04-12 13:27:38 +01:00
Daniel Wozniak
f12a3d2bc0
Merge branch 'master' into docs/fix-alphabetic-ordering 2020-04-11 23:39:54 -07:00
Adam Mendlik
41126accaa
Add virtual module documentation for sysctl 2020-03-28 21:14:11 -06:00
Christian McHugh
ebf8417c61 Add max-arnold's tests and associated cleanup 2020-03-13 08:29:27 +00:00
Imran Iqbal
5deb21a631
docs(index.rst): fix alphabetical ordering and remove duplicates 2020-03-11 15:41:07 +00:00
ch3ll
90e1ab260a
Add versioning docs 2020-01-25 13:17:23 -05:00
Christian McHugh
4e3f8ede78 don't include unmerged saltsupport 2020-01-19 07:39:16 +00:00
Christian McHugh
48677266d8 don't include unmerged nxos_upgrade 2020-01-19 07:35:05 +00:00
Christian McHugh
e18d8b2426 do not include unmerged baredoc 2020-01-19 07:31:36 +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
Herbert Buurman
958b3d1084
Added and fixed documentation. 2019-12-31 10:26:39 +01:00
Christian McHugh
3c764e3f15
Merge branch 'master' into port-49822 2019-12-20 07:52:05 +00:00
Gareth J. Greenaway
4ddf93942f Merge pull request #51047 from terminalmage/issue49619
Add new execution module for troubleshooting Jinja map files
2019-12-18 09:35:31 +07:00
Christian McHugh
44adc6f302
Merge branch 'master' into port-49822 2019-12-13 07:11:28 +00:00
Daniel Wozniak
f81944fc6c
Merge branch 'master' into 2019_2_1_port_51141 2019-12-12 12:40:54 -07:00
Daniel Wozniak
318a75464a
Merge branch 'master' into port-52126 2019-11-20 00:58:55 -07:00
Daniel Wozniak
c7ba1c453c
Merge branch 'master' into 2019_2_1_port_51141 2019-11-12 10:25:09 -07: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
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
rallytime
4a218142a5
Remove support for RAET
Conflicts:
* doc/topics/releases/neon.rst
* requirements/tests.txt
* salt/cli/caller.py
* salt/daemons/test/__init__.py
* salt/daemons/test/test_minion.py
* salt/daemons/test/test_saltkeep.py
* salt/modules/event.py
* salt/modules/raet_publish.py
* salt/transport/__init__.py
* salt/utils/parsers.py
* setup.py
* tests/unit/modules/test_raet_publish.py
2019-10-10 09:46:39 +01:00
twangboy
97553cf889
Add docs for win_wusa 2019-10-07 17:33:49 -06:00
Gareth J. Greenaway
5fe7cf16d6
Porting PR #51141 to 2019.2.1 2019-09-18 18:06:26 -07:00
Tyler Johnson
6092683774
Added aixpkg to index 2019-06-04 13:14:43 -06:00
Ch3LL
9ada8d9b7f
Merge branch '2018.3' into '2019.2'
Conflicts:
  - salt/transport/zeromq.py
  - tests/unit/modules/test_kubernetesmod.py
  - tests/unit/modules/test_win_file.py
2019-03-14 16:13:54 -04:00
Ch3LL
af0537fa39
Add azure state and execution modules to doc index 2019-03-07 12:00:08 -05:00
Daniel Wallace
1e7490c458
update kubernetesmod in index.rst 2019-03-01 13:52:27 -06:00
Gareth J. Greenaway
186306a80c
reverting change in release notes, adding change to doc/ref/modules/all/index.rst. 2019-02-23 17:20:46 -08:00