|
|
|
|
|
|
|
|
# vim: ft=sls |
|
|
# vim: ft=sls |
|
|
{% from "salt/map.jinja" import salt_settings with context %} |
|
|
{% from "salt/map.jinja" import salt_settings with context %} |
|
|
|
|
|
|
|
|
|
|
|
{#- Resorting to this ugly hack since the state doesn't handle if the `baseurl` is |
|
|
|
|
|
already configured under another name, such as used by the `salt-bootstrap` #} |
|
|
|
|
|
{%- if not salt["cmd.run"]("zypper lr --uri | grep " ~ salt_settings.pkgrepo) %} |
|
|
salt-pkgrepo-install-saltstack-suse: |
|
|
salt-pkgrepo-install-saltstack-suse: |
|
|
pkgrepo.managed: |
|
|
pkgrepo.managed: |
|
|
- name: systemsmanagement_saltstack_products |
|
|
- name: systemsmanagement_saltstack_products |
|
|
|
|
|
|
|
|
- gpgcheck: 1 |
|
|
- gpgcheck: 1 |
|
|
- gpgkey: {{ salt_settings.key_url }} |
|
|
- gpgkey: {{ salt_settings.key_url }} |
|
|
- gpgautoimport: true |
|
|
- gpgautoimport: true |
|
|
|
|
|
{%- endif %} |