Commit graph

22 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
David Murphy
73bb35d943 Correct bash-completion for Debian / Ubuntu 2024-09-18 15:08:12 -07:00
David Murphy
a7da90d8f6 Removed commented out debug print statements 2024-09-09 13:30:49 -07:00
David Murphy
fbd6b74900 Further debug tests 2024-09-09 13:30:49 -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
Pedro Algarvio
50bcb9ebbc Allow excluding paths when cleaning up archives
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2024-01-16 09:23:16 +00:00
David Murphy
dd9a2bdfa9 Adjust ownership on log rotation 2023-11-09 17:03:03 +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
Pedro Algarvio
bff4741252 Remove salt execution and state modules only when building the windows package
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-09-19 20:37:29 +00: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
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
David Murphy
bd17823792 Add salt.ufw to salt-master install on Debian and Ubuntu 2023-08-11 10:22:09 +01:00
Pedro Algarvio
ad84d7cae9 Let's not concentrate the logic into a "one liner"
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-05-05 10:11:18 +01:00
Charles McMarrow
bae0321af9
[3006.x] saltutil.refresh_grains(clean_pillar_cache=False) (#64176)
* flacky jail most have label

* add clean_pillar_cache arg

* add docs

* Revert "flacky jail most have label"

This reverts commit 0888b84fd0.

* add clean pillar cache refresh util

* dont clear unless refresh_pillar

* tests

* changelong
2023-05-02 18:18:48 -07:00
Twangboy
c2a871859c Don't forget tools 2023-05-02 07:17:15 +01:00
Megan Wilhite
ddc8f4c232 Set master config in pkg/common 2023-04-15 20:49:08 +01:00
Pedro Algarvio
6c819439b5 Add a few more nice to have hooks
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-02-07 07:10:13 +00:00
Twangboy
b60b1451f5 Add pythonw.exe back to the package 2023-01-30 07:25:39 -07:00
Pedro Algarvio
b59884b231 Move cicd/env-cleanup-files.yml to pkg/common/env-cleanup-rules.yml
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-01-25 10:05:16 -07:00
Daniel A. Wozniak
701633d181 Initial commit of relenv debian package 2022-12-22 07:59:07 -07:00