Browse Source

Add exclude and includepkgs options for redhat repos

Signed-off-by: M. David Bennett <mdavidbennett@syntheticworks.com>
pull/236/head
M. David Bennett 1 month ago
parent
commit
7d4e7cb574
Failed to extract signature
2 changed files with 20 additions and 0 deletions
  1. +14
    -0
      README.rst
  2. +6
    -0
      linux/system/repo.sls

+ 14
- 0
README.rst View File

source: 'http://repos.fedorapeople.org/repos/openstack/openstack-icehouse/epel-6/' source: 'http://repos.fedorapeople.org/repos/openstack/openstack-icehouse/epel-6/'
gpgcheck: 0 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``) Ensure system repository to use czech Debian mirror (``default: true``)
Also pin it's packages with priority ``900``: Also pin it's packages with priority ``900``:



+ 6
- 0
linux/system/repo.sls View File

{%- if repo.gpgkey is defined %} {%- if repo.gpgkey is defined %}
- gpgkey: {{ repo.gpgkey }} - gpgkey: {{ repo.gpgkey }}
{%- endif %} {%- endif %}
{%- if repo.includepkgs is defined %}
- includepkgs: "{{ repo.includepkgs }}"
{%- endif %}
{%- if repo.exclude is defined %}
- exclude: "{{ repo.exclude }}"
{%- endif %}
{%- endif %} {%- endif %}
{%- else %} {%- else %}
pkgrepo.absent: pkgrepo.absent:

Loading…
Cancel
Save