Commit graph

235 commits

Author SHA1 Message Date
David Murphy
c2f129ac58 Add back accidentially deleted pkg sub-dir. 2025-02-10 15:26:36 -07:00
David Murphy
39cebf6f1d Update for reviewer comments, and add artifacts to git ignore 2025-02-10 15:26:36 -07:00
ScriptAutomate
6a01d02269 Update various out-dated links, emails, etc. 2025-01-11 15:25:01 -07:00
David Murphy
73bb35d943 Correct bash-completion for Debian / Ubuntu 2024-09-18 15:08:12 -07:00
David Murphy
d3ad2520d3 Updated salt-syndic to utilize user/group for Salt (master settings), and maintain on upgrade 2024-09-09 13:30:49 -07:00
Salt Project Packaging
b40833ed15
Release v3006.9 2024-07-29 07:51:58 +00:00
David Murphy
6319f9c981 Adjusting install, upgrade scripts 2024-07-15 14:21:02 -07:00
David Murphy
5ec86050ca Updated Debian and RPM to allow for correct ownership and systemd status 2024-07-15 14:21:02 -07:00
David Murphy
306e3ded4f WIP - Testing salt-master maintain ownership fixes 2024-07-15 14:21:02 -07:00
David Murphy
cb6802b35d WIP - testing rpm solution for ownership on upgrade 2024-07-15 14:21:02 -07:00
David Murphy
060b0d2e43 Ensure on rpm systems, that user and group for existing Salt, is maintained on upgrade 2024-07-15 14:21:02 -07:00
Daniel A. Wozniak
0958595262 Fix rpm provides and requires 2024-06-10 18:03:10 -07:00
Daniel A. Wozniak
79b4ffa116 Revert change to spec file 2024-06-10 18:03:10 -07:00
Salt Project Packaging
c5392cdbdb
Release v3006.8 2024-04-29 03:29:26 +00:00
Daniel A. Wozniak
975c2a439b Package fix 2024-04-24 12:17:41 +01:00
David Murphy
93dadb2116 Ensure symbolic links are created before using systemctl 2024-03-27 19:16:29 +00:00
David Murphy
61df4d8c86 Ensure path for systemctl to stop spoofing (security fix moved from classic spec) and debug helper scripts 2024-03-27 19:16:29 +00:00
David Murphy
53fce6957d Fix RedHat family systemd restart on upgrade, and updated tests 2024-03-27 19:16:29 +00:00
Salt Project Packaging
ce9d09bc9c
Release v3006.7 2024-02-20 22:04:07 +00:00
Shane Lee
62a58e3cca Handle upgrade scenario 2024-02-14 14:24:38 -07:00
Shane Lee
0021cb870d Fix the spec file for RPMs
Looked up the actual code for the macros being replaced
Made sure we're doing the proper if statements
Cleaned up the tests a little
2024-02-14 14:24:38 -07:00
ScriptAutomate
6fa6c86a47 Fix systemd scriptlet calls in RPMs 2024-02-14 14:24:38 -07:00
Salt Project Packaging
b1fa82b9a8
Release v3006.6 2024-01-26 12:06:14 +00:00
Pedro Algarvio
6bb31e2534 Fix source package build
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2024-01-17 16:58:39 -07:00
Salt Project Packaging
0472fd381e
Release v3006.5 2023-12-12 18:03:35 +00:00
Felippe Burk
c5e9cc2d0d adding usermod, groupadd, useradd to requires for rpm
Signed-off-by: Felippe Burk <burkf@vmware.com>
2023-11-30 07:55:02 +00:00
Pedro Algarvio
b6caa71b6e Make sure PIP_CONSTRAINT is also set when building RPM's from source
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-11-27 21:13:22 +00:00
Pedro Algarvio
5463132e9d Only generate the HMAC's for `libssl.so.1.1 and libcrypto.so.1.1` if those files exist.
Fixes #65581

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-11-20 21:17:51 +00:00
Barney Sowood
1abcf81601 Fix install of logrotate config for debian pkg
Fixes the install of logrotate config for the debian pkg
by moving file to pkg/common/logrotate/salt-common. File
is installed via salt-common.install file, which can't
rename files, only copy them to a directory, so we need to
rename the file and put it in a subdir of pkg/common.

Adds /etc/logrotate.d/salt-common to salt.common.conffiles to
ensure that dpkg will not overwrite configs modified by users.

Also updates RPM spec file for new location of logrotate config.

Config needs to be /etc/logrotate.d/salt-common as that is what
is used by 3005.x packages.
2023-11-03 06:46:00 +00:00
Salt Project Packaging
e37fbda4de Release v3006.4 2023-10-16 17:32:52 +00:00
Salt Project Packaging
8505972418
Release v3006.3 2023-09-06 17:02:29 +00:00
Daniel A. Wozniak
5a58aada3c Ignore un-packaged source files for source builds 2023-09-06 16:38:52 +00:00
Daniel A. Wozniak
a189dab40d Build an rpm with debug symbols 2023-09-06 16:38:52 +00:00
Barney Sowood
6bdbae00d7 Calculaate python version 2023-08-16 15:53:29 -07:00
Barney Sowood
215975bac0 Fix call to sys.stdout.flush() 2023-08-16 15:53:29 -07:00
Barney Sowood
76df410a36 Add support for fixing old pkg perms
Adds support for fixing old package (3006.0/3006.1) perms that used the
salt user too widely.
Without doing this, tests don't pass for upgrades.
2023-08-16 15:53:29 -07:00
Barney Sowood
5d3ffc9e77 Handle creation of /var/log/salt/key 2023-08-16 15:53:29 -07:00
Barney Sowood
194e1a4603 Create empty log for salt-api
Creates empty log for salt-api owned by salt user in same way we do for
the master and salt-cloud
2023-08-16 15:53:29 -07:00
Barney Sowood
25c5a8e8d8 Move log creation and chown to posttrans
Moves log creation for /var/log/salt/master and /var/log/salt/cloud
and setting ownership to salt:salt to the %posttrans scriplets.
Whilst using %post work fine for fresh installs, upgrading means that
the previous package %postun removes those files. Using %posttrans
ensures the logs are created at the end of the full install/upgrade
transaction.
2023-08-16 15:53:29 -07:00
Barney Sowood
dc2e10b855 Create /var/run/salt/master
Creates /var/run/salt/master directory - if we don't create that
specifically the postinst script will fail
2023-08-16 15:53:29 -07:00
Barney Sowood
da6cfc99ab Reduce perms for salt user on other salt dirs
Reduces the permissions granted to the salt user used to run the
salt-master:

* Under /etc/salt limit ownership to  /etc/salt/pki/master and
  /etc/salt/master.d
* Until #64219 is resolved also include /etc/salt/minion.d
* Under /var/cache/salt and /var/run/salt only give ownership on
  master directories
* Under /var/log/salt, ensure /var/log/salt/master exists and give
  ownership oof that. Also update logrotate config to create that with
  correct ownership and perms and install that on debian packages.
2023-08-16 15:53:29 -07:00
Barney Sowood
af9ee1a9c6 Update packages for python modules owned by root
Updates Debian and RPM packages so that /opt/saltstack/salt and the
python packages don't have to be owned by salt user.

It shouldn't be necessary for salt user, used to run salt-master to be
able to write/modify files in that directory hierarchy.

Add postinst scripts to call the python compileall module to create
byte-compiled python modules. This should preserve performance whilst
not requiring write access for salt user.

Also cleans up .pyc files and __pycache__ dirs on removal.
2023-08-16 15:53:29 -07:00
Salt Project Packaging
8f750fa7ae Release v3006.2 2023-08-09 12:08:57 +00:00
Felippe Burk
fff6078c29 adding obsoletes to rpm.spec for photon3 packages
Signed-off-by: Felippe Burk <burkf@vmware.com>
2023-08-01 09:31:26 -07:00
Pedro Algarvio
7cd5ad6a31 Update .github/, cicd/, pkg/ and tools/ to latest 3006.x
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-07-19 08:49:10 +01:00
Salt Project Packaging
4e8b77df67
Release v3006.1 2023-05-05 17:53:34 +00:00
Daniel A. Wozniak
c4ee9ee967 Fix perms on could deployment directories 2023-05-03 16:42:19 -07:00
Daniel A. Wozniak
e36aa3cfcb Skip all salt user tests on mac 2023-05-03 12:35:08 -07:00
Daniel A. Wozniak
28d87c1333 Add chahgelogs for #64141 and #64158 2023-05-03 12:35:08 -07:00
Daniel A. Wozniak
64a0bddd13 Generate master and minion configs 2023-05-03 12:35:08 -07:00