Commit graph

1113 commits

Author SHA1 Message Date
nicholasmhughes
bcac6245ff fixes saltstack/salt#63231 serious performance issues with the file.tidied module 2022-12-12 08:13:39 -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
Gareth J. Greenaway
cb820b6bf0
Merge pull request #62868 from lkubb/script-engine-onchange
Add onchange configuration for script engine
2022-12-08 13:30:13 -08:00
Jakub Recman
6b65273055 Add changelog for #62826 2022-12-08 10:59:34 -07:00
jeanluc
f5278ee111
Merge branch 'master' into script-engine-onchange 2022-12-08 08:24:24 +01:00
Megan Wilhite
5b08153a63 Explicitly pass in context for all state functions in salt-ssh 2022-12-07 20:34:52 -07:00
Megan Wilhite
92ce21d300 Add changelog 2022-12-07 14:46:37 -07:00
Gareth J. Greenaway
d0ed816e8a adding changelog 2022-12-07 14:45:13 -07:00
Max Arnold
c48d6c94cd Add changelog entry for __orchestration__ key removal 2022-12-07 10:10:37 -07:00
Gareth J. Greenaway
958950360f Adding changelog. 2022-12-07 10:07:11 -07:00
Gareth J. Greenaway
4212c320e6 Restore the previous slack engine and deprecate it, rename replace the slack engine to slack_bolt until deprecation 2022-12-07 09:13:55 -07:00
Gareth J. Greenaway
21463a2f46
Merge pull request #63135 from keslerm/remove-boto-dependency
remove boto dependency from boto3mod
2022-12-06 15:59:57 -08:00
Gareth J. Greenaway
b150f56b1e
Merge pull request #63213 from lkubb/recursivedd-nested
Fix RecursiveDictDiffer
2022-12-06 15:31:48 -08:00
Charles McMarrow
d7614651e8 Update changelog/49430.changed
Co-authored-by: Megan Wilhite <mwilhite@vmware.com>
2022-12-06 12:41:45 -07:00
cmcmarrow
40752d0451 add log 2022-12-06 12:41:45 -07:00
nicholasmhughes
553dfd2fe2 fixes saltstack/salt#63128 add ethtool execution and state module functions for pause 2022-12-06 09:23:36 -07:00
Megan Wilhite
b7da9d2ef2 Rename changelog filename and update version to Argon 2022-12-06 07:07:53 -07:00
Kevin Rauwolf
6e71e19318 Added keep_jobs_seconds config option, deprecated keep_jobs 2022-12-06 07:07:53 -07:00
jeanluc
1536257f9d
Add changelog 2022-12-06 13:30:14 +01:00
Wayne Werner
78df3f2b9a Fix boto_route53 bug with (multiple) VPCs
This is a workaround because there is/was a bug in boto (see
boto/boto#3061 and boto/boto#2882 for more info) where VPCs were a list
with multiple, or a dict with one VPC. Now it won't matter if the return
is a dict or a list, we'll correctly process it.
2022-12-05 13:22:04 -07:00
Twangboy
6100edfdc0 Add changelog 2022-12-05 13:21:54 -07:00
nicholasmhughes
07b5980bf4 fixes saltstack/salt#63131 add boardname grain 2022-12-05 12:25:59 -07:00
Gareth J. Greenaway
e714c211ad
Merge pull request #63050 from barneysowood/default-disable-salt-api-clients
Add option to enable/disable netapi clients
2022-12-02 14:14:34 -08:00
rridley
3e60827193
Add changelog 2022-12-02 15:37:50 -05:00
nicholasmhughes
4109c784b7 fixes saltstack/salt#63093 add ability for file.symlink to not set ownership on existing links 2022-12-02 12:57:41 -07:00
Barney Sowood
4aea0c6c2d Update changelog for netapi_enable_clients option
Updates changelog entry for netapi_enable_clients options to be a
"changed" rather than "added" changelog entry as it will require users
to update their master config.
Expands on explanation of change to make clear what will happen.
2022-12-02 11:55:23 +00:00
Barney Sowood
9b98b3d86f Add changelog 2022-12-02 11:47:52 +00:00
Marius Hoch
598c0aea1d Add changelog for #60994 2022-12-01 13:12:27 -07:00
MKLeb
4b6372572c Add changelog and fix unformatted text table in vault pillar module docstring 2022-12-01 13:11:39 -07:00
Benjamin Drung
ca20bb320d Fix OS grain inconsistencies if lsb-release is installed or not
Most Linux distributions ship an os-release file by default. Some do not
ship lsb-release information, but they can be installed afterwards.
Installing/Removing lsb-release can lead to different OS grain values.

| OS               | grain      | without lsb-release              | with lsb-release |
|------------------|------------|----------------------------------|------------------|
| AlmaLinux 8      | oscodename | AlmaLinux 8.5 (Arctic Sphynx)    | ArcticSphynx     |
| Astra CE         | os         | Astra (Orel)                     | AstraLinuxCE     |
| Astra CE         | os_family  | Astra (Orel)                     | Debian           |
| Astra CE         | osfullname | Astra Linux (Orel)               | AstraLinuxCE     |
| Astra CE 2.12.40 | osfinger   | Astra Linux (Orel)-2             | AstraLinuxCE-2   |
| Debian           | osfullname | Debian GNU/Linux                 | Debian           |
| Mendel           | osfullname | Mendel GNU/Linux                 | Mendel           |
| Mendel 10        | osfinger   | Mendel GNU/Linux-10              | Mendel-10        |
| Mint             | osfullname | Linux Mint                       | Linuxmint        |
| Mint 20.3        | osfinger   | Linuxmint-20                     | Linux Mint-20    |
| Pop              | osfullname | Pop!_OS                          | Pop              |
| Pop 20.04        | osfinger   | Pop!_OS-20                       | Pop-20           |
| Rocky            | osfullname | Rocky Linux                      | Rocky            |
| Rocky 8          | osfinger   | Rocky Linux-8                    | Rocky-8          |
| Rocky 8          | oscodename | Rocky Linux 8.5 (Green Obsidian) | GreenObsidian    |

The current code that determines the OS grains on Linux is a mess: First
lsb-release is queried. If that fails, fall back to read os-release and
parse some `/etc/*-release` files. Then query `_linux_distribution` and
use a mixtures of those for the OS grains. `_linux_distribution` queries
the Python `distro` library. `distro` queries the os-release file,
lsb-release, and then `/etc/*-release`.

Rewrite the code that determines the OS grains on Linux. Solely rely on
the data provided by the os-release file. To not cause regressions, only
switch the distribution that has been tested. All other distributions
will use the legacy code (which was moved to
`_legacy_linux_distribution_data`).

The new code derives the `os_family` grain from the `ID_LIKE` field from
os-release (see https://github.com/saltstack/salt/issues/59061 for this
feature request). To enable this feature, the new code needs to be used
by default (and not just for selected distributions).

This commit introduces a few changes to the OS grains:

* AlmaLinux and Rocky Linux extract the codename from the `VERSION` field
  now instead of using the full `PRETTY_NAME`.
* Mendel uses now `Mendel GNU/Linux` as `osfullname` and correctly
  extracts the `osrelease` from `PRETTY_NAME`.
* Pop!_OS changes the `osfullname` from `Pop` to `Pop!_OS`.
* Astra Linux changes the `osfullname` from `AstraLinuxCE` to
  `Astra Linux (Orel)` and `AstraLinuxSE` to `Astra Linux (Smolensk)`
  respectively.

Fixes https://github.com/saltstack/salt/issues/61618
Signed-off-by: Benjamin Drung <benjamin.drung@ionos.com>
2022-11-30 13:12:14 -07:00
Megan Wilhite
e0e3fed2ce
Merge pull request #62674 from lkubb/vault-pillar-templating
Improve Vault templating (policies, ext_pillar paths)
2022-11-29 13:12:38 -07:00
nicholasmhughes
f4f441646b fixes saltstack/salt#63098 add funcs to return block device, mount point, and filesystem type for a path 2022-11-29 13:02:44 -07:00
Gareth J. Greenaway
ea1f030905
Merge pull request #63126 from whytewolf/62934
remove _resolve_deps which required python-apt
2022-11-29 11:45:39 -08:00
Thomas Phipps
fdde0e3a85 add chanelog 2022-11-28 21:10:50 +00:00
Lukas Raska
95ccd20826
Correct TCP transport documentation regarding master-side filtering 2022-11-28 18:52:11 +01:00
Twangboy
a3619a41fb Add changelog and test case 2022-11-22 08:43:03 -07:00
Nicholas Hughes
01cd8f2d73
Merge branch 'master' into add-global-state-conditions 2022-11-21 09:12:02 -05:00
MKLeb
021c44f3ba Migrate btrfs module unit test and add one for subvolume_snapshot 2022-11-18 15:12:47 -05:00
Gino Naumann
1b719d7c9c Add changelog for 63058 2022-11-18 12:53:02 -07:00
Gareth J. Greenaway
85fab706c9 Need to move the creation of the proxy object for the ProxyMinion further down in the initialization for sub proxies to ensure that all modules, especially any custom proxy modules, are available before attempting to run the init function. 2022-11-18 12:33:16 -07:00
MKLeb
8a62217866 Add tests and a changelog 2022-11-18 12:32:10 -07:00
MKLeb
ad2b54e337 Add tests and a changelog 2022-11-18 12:31:49 -07:00
Megan Wilhite
09066ee170 Fix ipset state when the comment kwarg is set. 2022-11-18 09:43:09 -07:00
MKLeb
34ddaa646b Remove check for if request is finished in EventListener.get_event since websockets finish early 2022-11-17 14:07:36 -07:00
jeanluc
5e7e253d0b
Merge branch 'master' into vault-pillar-templating 2022-11-17 14:09:05 +00:00
Megan Wilhite
7d0c77409b
Merge pull request #57222 from alexey-zhukovin/master-port-49310
Port #49310 to master
2022-11-16 12:38:14 -07:00
Megan Wilhite
c678a1bb85
Merge pull request #62019 from meaksh/master-fix-issue-targeting-duplicated-package-names
Make Salt to return an error on "pkg" modules and states when targeting duplicated package names
2022-11-16 12:36:07 -07:00
Twangboy
3cf602cd8a Add changelog, comment mock in test 2022-11-16 12:29:37 -07:00
Wayne Werner
a4b77df943 add changelog 2022-11-16 12:29:06 -07:00
Megan Wilhite
d5200469ac
Merge pull request #62897 from garethgreenaway/deltaproxy_concurrent_experiment
Deltaproxy concurrent
2022-11-15 13:56:32 -07:00