Commit graph

22 commits

Author SHA1 Message Date
David Murphy
6b0690e5af Remove debug output from shell scripts for packaging 2024-07-25 14:51:49 -07:00
David Murphy
82070dc46d Cleanup of debug, and revision of tests 2024-07-15 14:21:02 -07:00
David Murphy
18a4dd8282 Update to allow for systemctl daemon-reload after installing new packages 2024-07-15 14:21:02 -07:00
David Murphy
b44bd4be78 Fix typo's and parsing of RESLT 2024-07-15 14:21:02 -07:00
David Murphy
fc428ef22f Updated templates for systemd api, master and minion 2024-07-15 14:21:02 -07:00
David Murphy
ead4d3b90c More idea testing 2024-07-15 14:21:02 -07:00
David Murphy
840e22c734 Further updates for Debian post install scripts 2024-07-15 14:21:02 -07:00
David Murphy
0b2eb2db8f Install fixes 2024-07-15 14:21:02 -07: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
d3e0bf3437 Fixed issues in pre and post install for salt-master 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
Barney Sowood
a1188e2d5f Don't change ownership of /etc/salt/minion.d
No longer changes ownership of /etc/salt/minion.d to salt user for the
salt-master. Requires #64219 to be resolved.
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
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
Daniel A. Wozniak
fb6906f9d2 use preinst for salt user 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
Megan Wilhite
5ac22b653e Check systemctl binary before calling it 2023-04-17 16:09:24 +01:00
Megan Wilhite
fc814d75f1 Add user in postinst 2023-04-15 20:49:08 +01:00
Megan Wilhite
1cc64d2962 Enable service and use sysuser 2023-04-15 20:49:08 +01:00
Megan Wilhite
9c241433d1 only run postinst for salt master 2023-04-15 20:49:08 +01:00
Renamed from pkg/debian/postinst (Browse further)