Commit graph

1933 commits

Author SHA1 Message Date
Andreas Thienemann
e58d28285c Fix Xen DomU detection in grains
Current code has two issues:
 - Parses dmesg for "xen:" messages. This will only work when initial kernel
   messages are still available via dmesg. After some uptime other messages
   (e.g. OOM) will have evicted the initial boot messages from the ringbuffer.
   This leads to the weird situation that a grain changes depending on uptime.
 - Checks if /sys/bus/xen/drivers/xenconsole is a file to verify it's running
   under Xen. Unfortunately, this path is not a file but a directory.

This change swaps the order, first check for xenconsole being a directory, then
run dmesg as a fallback.

Unit tests are updated correctly to cover this case.
Drive-By: Correct docstring for xen tests. These have nothing to do with Ubuntu
          Xenial
Drive-By: Fix indentation error in tests
2021-04-21 12:39:44 -07:00
Mark Hyde
d2864a3b00 Add changelog entry for openstack ignore_cidr option 2021-04-21 12:38:47 -07:00
Tobias Jungel
09bef6b4d0 fixup nftables.build_rule for saddr/daddr
nftables.build_rule does not correctly build nftables rules when saddr
or daddr is used due to missing whitespace. This PR adds the missing
whitespace to corretly build the rule.
2021-04-21 12:30:18 -07:00
vin01
c4bd7f6915 Add changelog for #59922 2021-04-13 14:52:33 -07:00
Bryce Larson
24b69a9e38 add distro_arch 2021-04-09 14:54:17 -07:00
Megan Wilhite
5fde6bd33e Add changelog for 59744 2021-04-08 16:12:15 -07:00
StackKorora
955d730471
Adding preliminary support for Rocky. (#59682)
* Adding preliminary support for Rocky.

* Adding changelog and test per MR guidence.

* Update test_core.py

Fix a clean up issue

Co-authored-by: Megan Wilhite <megan.wilhite@gmail.com>
Co-authored-by: Gareth J. Greenaway <gareth@wiked.org>
2021-04-07 06:49:23 -04:00
Tim Dithmer
d24d18bda9 Add changelog 2021-04-06 17:44:30 -07:00
twangboy
f8337f1fbb Handle gpt.ini with unix line endings 2021-04-05 14:46:40 -04:00
Loren Gordon
dd8a4bcd78 Simplifies changelog entry 2021-04-05 14:45:12 -04:00
Loren Gordon
a6544c7f11 Adds changelog entry for success_stdout and success_stderr arguments 2021-04-05 14:45:12 -04:00
Anton Karmanov
ec63d2cff5
Add grains fix for Astra Linux (#59353) 2021-04-05 07:16:42 -04:00
krionbsd
752b3cc510 Add changelog entry 2021-04-02 15:28:22 -07:00
Joe Eacott
709a04f5e0 add changelog file 2021-04-02 06:37:31 -04:00
Joe Eacott
0796d7c88b
Fix 20789 - Window's user creation and password policy requirements (#59563)
* surface reason why user could not be created

* init commit before tests

* add changelog file

* bruh

* fix docstring

* better handle on logic

* convert first test to pytest

* pre-commit

* add runs_on to test

* fix lint

* more fixes

* fix nix tests

* fix windows tests

* add extra check to not break other tests

* pre commit

* remove extra check

Co-authored-by: Joe Eacott <jeacott@vmware.com>
Co-authored-by: Sage the Rage <36676171+sagetherage@users.noreply.github.com>
2021-04-02 06:26:03 -04:00
Megan Wilhite
68ef4654c0 Add changelog for 46942 2021-04-02 06:20:19 -04:00
Pablo Suárez Hernández
2cf67cb7c8 Add changelog 2021-04-01 06:28:37 -04:00
Megan Wilhite
6958139b3c Add changelog for 58915 2021-04-01 06:27:03 -04:00
piterpunk
2d1fe523eb Added changelog entry 2021-03-31 10:15:40 -07:00
krionbsd
e12623ad27 Changelog rewording 2021-03-31 09:22:01 -07:00
krionbsd
2e8ff713a2 Add changelog 2021-03-31 09:22:01 -07:00
Mark Ferrell
5d0b7de8b8 feat: added allow_one_of() and require_one_of() decorators
- `allow_one_of()` raises an error if more than one of the allowed
  parameters is supplied.
- `require_one_of()` operates the same as `allow_one_of()` but also
  raises an error if none of the allowed parameters are supplied.
2021-03-30 14:23:15 -04:00
Pablo Suárez Hernández
c81f238674 Add changelog 2021-03-30 13:24:10 -04:00
piterpunk
e32cf429e0 Fixed zabbix mod get connection data from pillar 2021-03-30 13:23:28 -04:00
Ion Cebotari
a30ac55f58 Added changelog for the fix 2021-03-30 13:22:13 -04:00
Morgan Kesler
5fbcc79f1b Adding mendel linux 2021-03-30 06:48:15 -04:00
krionbsd
584b5bfe3b Add changelog 2021-03-25 15:55:49 -04:00
Daniel A. Wozniak
94492d8538 Salt api honors --log-file correctly
Make sure we verify the proper path when the --log-file cli options is
passed via the commandline. Fixes #59880
2021-03-25 14:44:10 -04:00
Chunmei Xu
3f3010415d add aliyun linux support and set alinux as redhat family
Signed-off-by: Chunmei Xu <xuchunmei@linux.alibaba.com>
2021-03-24 10:56:41 -04:00
piterpunk
10c4da25c2 Added changelog entry 2021-03-22 14:30:09 -04:00
Megan Wilhite
7db15e9e5f update wording in changelog 2021-03-18 10:42:29 -04:00
Megan Wilhite
3c7c922ff5 Remove glance state module in favor of glance_image 2021-03-18 10:42:29 -04:00
Cédric Bosdonnat
39207dd38d virt: don't add spicevmc channel to Xen VMs
Xen fully virtualized VMs with spicevmc channel fail to start, so better
not write it out in such cases.
2021-03-17 07:25:08 -04:00
Frode Gundersen
fbb249c4df update changelog/releasenotes for 3003 2021-03-05 18:24:29 -05:00
cmcmarrow
b5e8b484fe fix test and clean up x509 2021-03-05 12:35:40 -05:00
cmcmarrow
84904862bc add test and log 2021-03-05 12:35:40 -05:00
Wayne Werner
a6f7f56228 Add changelog entry 2021-03-05 12:05:07 -05:00
piterpunk
0af246f1fe Added changelog entry 2021-03-05 10:02:06 -05:00
Pablo Suárez Hernández
ef1f48df41 Add changelog file 2021-03-05 10:00:47 -05:00
Pedro Algarvio
65e40ca272 Support loading entrypoints by passing a module instead of a function.
Fixes #58939
2021-03-05 07:32:14 -05:00
Pedro Algarvio
d8ffb0a454 Include salt extensions in the versions report
Fixes #58938
2021-03-05 07:32:14 -05:00
Alexander Graul
68ba719ff3 Add changelog entry for issue #58261 2021-03-04 15:29:54 -05:00
Lukas Raska
051dbe458e Implement tcp_reconnect_backoff minion option 2021-03-04 07:35:25 -05:00
piterpunk
d9cc4fb5aa Added changelog entry 2021-03-03 07:07:37 -05:00
Ken Crowell
756c6983af Add HAS_BOTO guards for boto3_elasticsearch 2021-03-03 06:34:49 -05:00
Megan Wilhite
7bff39ed0e Add changelog file for 56461 2021-03-02 13:47:54 -05:00
Gareth J. Greenaway
8312e087aa Adding changelog. 2021-03-02 08:06:19 -05:00
Ken Crowell
0e71279a18 Fix variously broken hold/lock zypper functions 2021-03-01 16:51:56 -07:00
James Howe
1e219c9074
Add SCRAM-SHA-256 support to postgres states (#59034)
* Tests for existing postgres_user states. Basic usage and password-related.

* Fix minor failing tests in postgres_user.present

* Make postgres_group consistent with postgres_user

Related: #59028

* Add support for SCRAM-SHA-256 for PostgreSQL.

Fixes: #51217

* Some additional old postgres tests that are now redundant.

* Add postgres changelog entries.

* Update documentation for 3003 release

* Convert DB_ARGS constant to fixture

* Simplify six auto-removal

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

* filename_map.yml should still list pytests

* Another six removal simplification

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

Co-authored-by: Sage the Rage <36676171+sagetherage@users.noreply.github.com>
Co-authored-by: Gareth J. Greenaway <gareth@wiked.org>
Co-authored-by: Pedro Algarvio <pedro@algarvio.me>
2021-03-01 13:39:48 -07:00
Joe Eacott
374d9b899c changes 2021-03-01 10:48:06 -07:00