Open dseomn opened 6 months ago
I can confirm this:
systemctl mask salt-minion
systemctl mask salt-master
Works for the minion:
curl -L https://bootstrap.saltproject.io | sh -s -- -X -d onedir latest
Doesn't work for the master:
curl -L https://bootstrap.saltproject.io | sh -s -- -X -d -M onedir latest
I had the same problem here:
When upgrading debian salt packages, the current status of the services are not managed:
Steps to Reproduce the behavior
On a Debian 12 Bookworm server
sh bootstrap-salt.sh -Q stable 3006.8
salt-api
with apt install salt-api
salt-master
and salt-minion
with systemctl disable --now salt-master.service salt-minion.service
salt-api
with systemctl mask --now salt-api.service
/etc/apt/sources.list.d/salt.list
to switch to 3007.1 deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg] https://repo.saltproject.io/salt/py3/debian/12/amd64/minor/3007.1/ bookworm main
apt full-upgrade
I'll try to make a PR to update the deb script with actual Debian standards.
My contribution in #66688 does the job
systemctl status salt-master.service salt-minion.service salt-api.service salt-syndic.service
apt install ./salt*.deb
systemctl status salt-master.service salt-minion.service salt-api.service salt-syndic.service
@dseomn FYI - the problem with systemd state being preserved or set correctly was fixed on the Salt 3006.x branch with https://github.com/saltstack/salt/pull/66218 along with pkg tests checking for various systemd enable/disable, active/inactive. It should be in the next release of Salt 3006.9, which should be getting released soon.
Description
When I try to install salt-master from the repo mentioned by https://docs.saltproject.io/salt/install-guide/en/latest/topics/install-by-operating-system/debian.html I get this error:
I want the
salt-run
command from the salt-master package, but I don't want to run any salt services, so I masked salt-master.service. Shouldn't the install still work?Setup (Please provide relevant configs and/or SLS files (be sure to remove sensitive info. There is no general set-up of Salt.)
Please be as specific as possible and give set-up details.
Steps to Reproduce the behavior
Expected behavior
The package installs successfully, but does not enable or start the salt-master service.
Screenshots N/A
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.) ```yaml Salt Version: Salt: 3007.0 Python Version: Python: 3.10.13 (main, Feb 19 2024, 03:31:20) [GCC 11.2.0] Dependency Versions: cffi: 1.16.0 cherrypy: unknown dateutil: 2.8.2 docker-py: Not Installed gitdb: Not Installed gitpython: Not Installed Jinja2: 3.1.3 libgit2: Not Installed looseversion: 1.3.0 M2Crypto: Not Installed Mako: Not Installed msgpack: 1.0.7 msgpack-pure: Not Installed mysql-python: Not Installed packaging: 23.1 pycparser: 2.21 pycrypto: Not Installed pycryptodome: 3.19.1 pygit2: Not Installed python-gnupg: 0.5.2 PyYAML: 6.0.1 PyZMQ: 25.1.2 relenv: 0.15.1 smmap: Not Installed timelib: 0.3.0 Tornado: 6.3.3 ZMQ: 4.3.4 Salt Package Information: Package Type: onedir System Versions: dist: debian n/a trixie locale: utf-8 machine: x86_64 release: 6.7.12-amd64 system: Linux version: Debian GNU/Linux n/a trixie ```Additional context N/A