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

Add includepkgs and exclude options for redhat repos #236

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -982,6 +982,20 @@ RedHat-based Linux with additional OpenStack repo:
source: 'http://repos.fedorapeople.org/repos/openstack/openstack-icehouse/epel-6/'
gpgcheck: 0

RedHat-based Linux with Salt Project repo, pinned to version 3006:

.. code-block:: yaml

linux:
system:
...
repo:
saltproject:
enabled: true
gpgkey: https://packages.broadcom.com/artifactory/api/security/keypair/SaltProjectKey/public
source: https://packages.broadcom.com/artifactory/saltproject-rpm/
includepkgs: "*3006*"

Ensure system repository to use czech Debian mirror (``default: true``)
Also pin it's packages with priority ``900``:

Expand Down
6 changes: 6 additions & 0 deletions linux/system/repo.sls
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,12 @@ linux_repo_{{ name }}:
{%- if repo.gpgkey is defined %}
- gpgkey: {{ repo.gpgkey }}
{%- endif %}
{%- if repo.includepkgs is defined %}
- includepkgs: "{{ repo.includepkgs }}"
{%- endif %}
{%- if repo.exclude is defined %}
- exclude: "{{ repo.exclude }}"
{%- endif %}
{%- endif %}
{%- else %}
pkgrepo.absent:
Expand Down