Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Salt 3006 #153

Merged
merged 1 commit into from
Feb 16, 2024
Merged

Upgrade to Salt 3006 #153

merged 1 commit into from
Feb 16, 2024

Conversation

DasSkelett
Copy link
Member

This commit includes adjustments that were needed after upgrading Salt to 3006.6.

Most changes have been caused by the move to the "Onedir packaging" (https://docs.saltproject.io/salt/install-guide/en/latest/topics/upgrade-to-onedir.html)


Most prominently, the six dependency is no longer bundled in salt.ext. Since we are not using Python 2 anymore, I have run pyupgrade on netbox.py and ddns.py, as upstream did as well:

Additionally, the Salt APT repository paths have changed, and the 3006 release is only available in the new ones.

Thirdly, with the move to Onedir, Salt brings its own Python environment. This affects us in two areas:

  1. Python packages installed by a plain pip.installed are only installed to this environment and not visible to other Python applications on the system
  2. Python packages installed on the system, e.g. with the system pip or as apt packages, are not visible to Salt.

This means that I had to change packages needed by Salt (e.g. to render templates) from pkg.installed to pip.installed, and for packages needed by applications I added - pip_bin: /usr/bin/pip3 as recommended in the upgrade guide.

This commit includes adjustments that were needed after upgrading Salt to 3006.6.

Most prominently, the `six` dependency is no longer bundled in `salt.ext`. Since we are not using Python 2 anymore, I have run `pyupgrade` on `netbox.py` and `ddns.py`, as upstream did as well:
- saltstack/salt#63874
- saltstack/salt@d9b5065#diff-3e81c988bb0fa260da8fdbee3b44dd7b1f9ccebf488117b5f68c2f728bd9d287
@DasSkelett DasSkelett added the maintenance Maintenance tasks like updates label Feb 15, 2024
@DasSkelett DasSkelett requested a review from a team as a code owner February 15, 2024 22:41
@DasSkelett DasSkelett merged commit 306391c into main Feb 16, 2024
8 checks passed
@DasSkelett DasSkelett deleted the salt-3006 branch February 16, 2024 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Maintenance tasks like updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants