-
Notifications
You must be signed in to change notification settings - Fork 419
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(oracle-7): use
osmajorrelease
instead of $releasever
Avoid this error: ``` ID: salt-master Function: pkg.installed Result: False Comment: Error occurred installing package(s). Additional info follows: errors: - Running scope as unit run-402.scope. Loaded plugins: ovl, ulninfo https://repo.saltproject.io/py3/redhat/7Server/x86_64/3002/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found Trying other mirror. No package salt-master available. Error: Nothing to do ```
Showing
8 changed files
with
58 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# -*- coding: utf-8 -*- | ||
# vim: ft=yaml | ||
--- | ||
|
||
{%- set py_ver_repr = salt['pillar.get']('salt:py_ver', '') %} | ||
|
||
{%- set osrelease = salt['grains.get']('osrelease', '') %} | ||
{%- set salt_release = salt['pillar.get']('salt:release', 'latest') %} | ||
{%- if salt_release.split('.')|length >= 3 %} | ||
{%- set salt_release = 'archive/' ~ salt_release %} | ||
{%- endif %} | ||
{%- set osmajorrelease = salt['grains.get']('osmajorrelease', osrelease)|string %} | ||
{%- set salt_repo = salt['pillar.get']('salt:repo', 'https://repo.saltproject.io') %} | ||
|
||
Oracle Linux Server-7: | ||
pkgrepo_humanname: SaltStack repo for RHEL/CentOS {{ osmajorrelease }} | ||
pkgrepo: '{{ salt_repo }}/{{ py_ver_repr or 'yum' }}/redhat/{{ osmajorrelease }}/$basearch/{{ salt_release }}' | ||
key_url: '{{ salt_repo }}/{{ py_ver_repr or 'yum' }}/redhat/{{ osmajorrelease }}/$basearch/{{ salt_release }}/SALTSTACK-GPG-KEY.pub' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters