Commit graph

210 commits

Author SHA1 Message Date
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
Daniel A. Wozniak
6b599b0e12 salt user in rpm 2023-05-03 12:35:08 -07:00
Daniel A. Wozniak
e00031c5e5 Salt home has world read and execute perms 2023-05-03 12:35:08 -07:00
Daniel A. Wozniak
9a3ce4630c Fix warts in setting up user in spec file 2023-05-03 12:35:08 -07:00
Daniel A. Wozniak
b7fbec8158 Move salt user creation to common package
Move the salt user creation to the common package shared all other salt
packages.
2023-05-03 12:35:08 -07:00
Daniel A. Wozniak
caaf5feff7 Fix building package on amazon linux 2023-05-02 07:18:35 +01:00
Salt Project Packaging
86bb64dde2
Release v3006.0 2023-04-18 21:05:02 +00:00
MKLeb
5c7c1396f2 Revert "Release v3006.0"
This reverts commit e5209410c3.
2023-04-18 13:43:28 -07:00
Salt Project Packaging
e5209410c3
Release v3006.0 2023-04-18 16:28:01 +00:00
Megan Wilhite
1cc64d2962 Enable service and use sysuser 2023-04-15 20:49:08 +01:00
Megan Wilhite
b7b3d5fa40 Fix permissions in test suite and add all paths to both packages 2023-04-15 20:49:08 +01:00
Megan Wilhite
7ab9844db1 Set permissions in salt.spec file files listing 2023-04-15 20:49:08 +01:00
Megan Wilhite
076d213394 Set ownership/group on /opt/saltstack/salt/ 2023-04-15 20:49:08 +01:00
Megan Wilhite
8800369488 Only run chown if the directory exists 2023-04-15 20:49:08 +01:00
Megan Wilhite
eebd28debf Set ownership for salt for correct directories 2023-04-15 20:49:08 +01:00
Megan Wilhite
f3ca68541a Add salt group to debian packages 2023-04-15 20:49:08 +01:00
Megan Wilhite
ddc8f4c232 Set master config in pkg/common 2023-04-15 20:49:08 +01:00
Megan Wilhite
678b5c63bf Patch Salt Master config file 2023-04-15 20:49:08 +01:00
Megan Wilhite
9d259f37d9 User salt user/group for running salt-master 2023-04-15 20:49:08 +01:00
MKLeb
9e4e9a0ca6 Create the extras directory with tools 2023-04-13 18:47:11 -07:00
MKLeb
3b49926587 Create pip install directory for packages (except for windows, for now) and add some test coverage for the new pip install directory 2023-04-13 18:47:11 -07:00
MKLeb
fe1c64b7a1 REVERT Remove pciutils and dmidecode as dependencies 2023-04-12 12:53:39 -07:00
MKLeb
f8b6220c23 Remove pciutils and dmidecode as dependencies 2023-04-12 12:53:39 -07:00
MKLeb
c94ea66c8a Try removing the systemd-units dependency 2023-04-12 12:53:39 -07:00
MKLeb
bd378232d4 Remove package name argument when building from source, we don't need it 2023-04-11 10:04:23 -07:00
MKLeb
230337b32e Change the spec and rules file to use tools, and build from source using tools for rpms and debs 2023-04-11 10:04:23 -07:00