Commit graph

3124 commits

Author SHA1 Message Date
nicholasmhughes
b5749fc6d1 fixes saltstack/salt#62983 add environment file serializer 2022-11-08 12:52:59 -07:00
Nicholas Hughes
5c8b2083b4
Merge branch 'master' into add-global-state-conditions 2022-11-03 12:03:46 -04:00
Erik Johnson
765a5f0808 Add umask as a global state argument
This removes the umask argument from cmd states and makes it a global
state argument.
2022-11-01 14:18:38 -06:00
James Howe
327664a375 Title underline too short 2022-10-31 13:19:25 -06:00
James Howe
ed9188f6c2 Update requisite matching
Properly document how identifier matching works.
Reorder sections to a more logical progression.
Remove duplicate section.
Remove section on high data implementation details that doesn't make anything clearer.
2022-10-31 13:19:25 -06:00
Twangboy
8ab898128f
Fix docs 2022-10-28 14:36:07 -06:00
nicholasmhughes
d6488ea30e
fix underline too short 2022-10-28 14:36:06 -06:00
nicholasmhughes
d258b87a08
fixes saltstack/salt#62446 add global_state_conditions handling 2022-10-28 14:36:06 -06:00
Gareth J. Greenaway
d5ad5cbda7
Merge branch 'master' into patch-1 2022-10-26 11:21:11 -07:00
Wayne Werner
e53bb86269
fix small typo
Missed reviewing the other PR, this one fixes some formatting strings
(yay, rST).
2022-10-24 13:34:22 -05:00
Alyssa Rock
a359602147 Add information about logging for non-Python users 2022-10-24 10:06:40 -06:00
Geoff
0f5088f766 Change slightly order of doc/ref/index.rst
I think this change will cause the table of contents for the Salt Module Reference to list execution modules just after engine modules, which is in alphabetical order. Currently the execution modules are slighly lower in the table of contents, and seems to be the only entry that is not in alphabetical order (at least, as an English reader).
2022-10-21 22:58:54 -07:00
piterpunk
d1932fa3c5
Added sysfs state module to manage kernel objects 2022-10-21 13:24:12 -06:00
Shane Lee
4c3638bd14
Merge branch 'master' into doc-fixes 2022-10-20 10:44:53 -07:00
Twangboy
6050c91ff1
Add to toctree to fix docs build... hopefully 2022-10-17 17:32:35 -06:00
Twangboy
58a60ec17d
Remove 'undoc-members' 2022-10-17 17:14:00 -06:00
Twangboy
b9bfa808a5
Fix some pre-commit 2022-10-17 17:09:34 -06:00
Alvaro Uria
50dd3ffd3e Add ipc_write_buffer to master/minion config docs
This option was introduced in 2016 [1] and typing enforced in 2022 [2].
However, documentation was not added in the master and minion
configuration docs. This change adds the mentioned documentation.

1. https://github.com/saltstack/salt/pull/34683
2. ea35cb527e
2022-10-10 13:13:58 -06:00
Gareth J. Greenaway
a3e5ba47d4 manually run pre-commit 2022-10-05 09:11:43 -07:00
Gareth J. Greenaway
627f0c4a7c Porting PR #51840 to 2019.2.1 2022-10-05 09:11:43 -07: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
cmcmarrow
1e8dce6b04 adds win_event_viewer 2022-10-03 14:00:03 -06:00
cmcmarrow
9c88af1fe6 adds win_event_viewer 2022-10-03 14:00:03 -06:00
Sharky
0667c20191 I just want to add one step not two 2022-09-30 10:23:12 -06:00
Sebastian Schaack
d0c3be48ba If you want to use the delta proxy. We need one addtional step . We have to set metaproxy var inside /etc/salt/proxy to deltaproxy. Second problem: When using the deltaproxy feature we have to use salt-proxy --proxyid=CONTROLPROXY and not the specific minion. 2022-09-30 10:23:12 -06:00
Benjamin Drung
ad95c4fcac Make default pki directory configurable
The files in `/etc/salt/pki` are not configuration files in the sense of
the FHS ("local file used to control the operation of a program").
Debian wants to change the default location to `/var/lib/salt/pki` (to
properly follow FHS and to allow setting StateDirectory in the salt
master systemd configuration).

Therefore introduce a `LIB_STATE_DIR` syspaths variable which defaults
to `CONFIG_DIR`, but can be individually customized.

fixes #3396
Bug-Debian: https://bugs.debian.org/698898
Signed-off-by: Benjamin Drung <benjamin.drung@ionos.com>
2022-09-29 12:52:52 -06:00
xieyi.nino
40c3ce7feb docs: fix default runner returns value 2022-09-27 13:27:57 -06:00
Pedro Algarvio
8ca6bb29f7 Rename salt/serializers/toml.py to salt/serializers/tomlmod.py
To avoid importing our `toml` code when we actually want the `toml` library.

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2022-08-26 15:41:33 +01:00
Megan Wilhite
fc7d0a9296
Merge freeze into master (#62438)
* fixes saltstack/salt#62372 unable to use random shuffle and sample functions as Jinja filters

* move random_shuffle and random_sample logic to utils

* static seed in tests seems to have shifted

* static seed in tests require hash module

* Change Tiamat to onedir in release notes

* Reinstate known issues

* Update release notes with onedir package support policy

* need to check the version of Netmiko python library and then import the exceptions from different locations depending on the result.

* Adding changelog.

* swap out if...else for double try...except.

* Remove extra fix we don't need anymore

* [Docs] include onedir system python note

* Update all platforms to use pycparser 2.21 or greater for Py 3.9 or higher, fixes fips fault with openssl v3.x

* Remove the PyObjC dependency

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>

* Add "<tiamat> python" subcommand to allow execution or arbitrary scripts via bundled Python runtime

* Document usage of bundled Python runtime for Client API

* Use explicit locals for custom script execution, handle exception in similar fashion as Python

* Remove old __file__ replacement

* Apply suggestions from code review

Co-authored-by: Pedro Algarvio <pedro@algarvio.me>

Co-authored-by: nicholasmhughes <nicholasmhughes@gmail.com>
Co-authored-by: Alyssa Rock <alyssa.rock@gmail.com>
Co-authored-by: Gareth J. Greenaway <gareth@saltstack.com>
Co-authored-by: Twangboy <leesh@vmware.com>
Co-authored-by: David Murphy < dmurphy@saltstack.com>
Co-authored-by: Pedro Algarvio <palgarvio@vmware.com>
Co-authored-by: Lukas Raska <lukas@raska.me>
Co-authored-by: Pedro Algarvio <pedro@algarvio.me>
2022-08-08 11:27:10 -06:00
Alyssa Rock
2e5f3aa7b0 Add config to index to prevent build error 2022-06-27 21:52:15 -07:00
Twangboy
898cc3130e Fix some linting errors 2022-06-02 07:21:27 -06:00
Pablo Suárez Hernández
d40e1001a0 Add note about --no-return-event option to salt-call docs 2022-06-01 13:43:12 -06:00
Victor Zhestkov
d4d2f0cdd5 Add doc and test fixes 2022-05-26 09:01:22 -07:00
Jamie Murphy
d549038625 doc update 2022-05-20 15:21:03 -04:00
Jamie Murphy
7f81bca162 doc update 2022-05-20 15:21:03 -04:00
James Howe
38341cb2fe Minor doc correction 2022-05-10 14:57:59 -04:00
Pedro Algarvio
3d73e90796 Move the salt loader `log_handlers` out of the internal logging package
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2022-04-12 09:46:02 -04:00
Megan Wilhite
b16ad8ea87 Remove enable_slsvars_fixes feature flag and enable behavior by default 2022-04-07 13:59:47 -04:00
Pedro Algarvio
2f6844f621 A few additional replacements for `SaltStack, Inc` 2022-04-06 15:35:31 -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
nicholasmhughes
a5fcf442a3 fixes saltstack/salt#61708 add grains_refresh_pre_exec option for minions 2022-03-08 15:33:13 -05:00
nicholasmhughes
a96433309b refactor to only substitute __env__ environment 2022-02-15 14:58:34 -05:00
nicholasmhughes
52e1d0b811 add __env__ substitution inside file and pillar root paths 2022-02-15 14:58:34 -05:00
Thomas Phipps
62c5619aba add metadata_gce grain to handle the fact that google is not
useing the ec2 format for their metadata servers anymore.

fixes #52332
2022-02-08 13:42:08 -08:00
nicholasmhughes
7e1c2baa65 fixes saltstack/salt#61549 allow roll-up of duplicate IDs with different names 2022-02-04 15:29:11 -05:00
Brian Harring
ef56aa0547 Add option to have gpg decrypt failures treated as errors.
This is defaulted `false` for compatibility, and is controlled via
a `gpg_decrypt_must_succeed` option.

If this is true- and the ciphertext couldn't be decrypted- then it's
treated as an error rather than just passing the raw ciphertext through.

Sending the ciphertext through basically is *never* desired- the point
of the gpg renderer is to decrypt the secret, not send the cipher text
through.
2022-02-01 14:40:49 -05:00
Gareth J. Greenaway
5ba1779213 Removing fileserver_limit_traversal from all configuration files and documentation. 2022-01-20 17:12:14 -05: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
N
c2076e98c5 docs(minion): fix typo 2022-01-14 15:22:58 -05:00