-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Change repo.saltproject.io to new url #67024
base: 3006.x
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And fix lint
@@ -104,7 +104,7 @@ def build_repo_file(): | |||
source_path = "/etc/apt/sources.list.d/source_test_list.list" | |||
try: | |||
test_repos = [ | |||
"deb [signed-by=/etc/apt/keyrings/salt-archive-keyring-2023.gpg arch=amd64] https://repo.saltproject.io/salt/py3/ubuntu/22.04/amd64/latest jammy main", | |||
"deb [signed-by=/etc/apt/keyrings/salt-archive-keyring-2023.gpg arch=amd64] https://packages.broadcom.com/artifactory/saltproject-deb/ jammy main", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we are using salt.sources now , see https://docs.saltproject.io/salt/install-guide/en/latest/topics/install-by-operating-system/linux-deb.html
@@ -863,7 +863,7 @@ def test_adding_repo_file_signedby_alt_file(pkgrepo, states, repo): | |||
assert repo.repo_content in ret.comment | |||
|
|||
key_file = repo.key_file.parent / "salt-alt-key.gpg" | |||
repo_content = "deb [arch=amd64 signed-by={}] https://repo.saltproject.io/py3/debian/10/amd64/latest buster main".format( | |||
repo_content = "deb [arch=amd64 signed-by={}] https://packages.broadcom.com/artifactory/saltproject-deb/ buster main".format( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"salt-cloud", | ||
"salt-api", | ||
"salt-debuginfo", | ||
f"salt-master-{salt_release}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for rpm it is 👍
salt-minion=3006.8
) | ||
with salt.utils.files.fopen( | ||
pathlib.Path("/etc", "apt", "sources.list.d", "salt.list"), "w" | ||
) as fp: | ||
fp.write( | ||
f"deb [signed-by=/etc/apt/keyrings/{gpg_dest} arch={arch}] " | ||
f"https://repo.saltproject.io/{root_url}{distro_name}/{self.distro_version}/{arch}/{major_ver} {self.distro_codename} main" | ||
f"deb [signed-by={gpg_full_path} arch={arch}] " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
f"https://repo.saltproject.io/salt/py3/macos/{major_ver}/{mac_pkg}" | ||
) | ||
mac_pkg = f"salt-{self.prev_version}-py3-{arch}.pkg" | ||
mac_pkg_url = f"{root_url}/saltproject-generic/macos/{major_ver}/{mac_pkg}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is {major_ver}.{minor_ver}
What does this PR do?
This is a first attempt to change URLs from repo.saltproject.io to packages.broadcom.com. I'm not addressing any workflow stuff here.