Saltstack Official Salt Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 satır
667B

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=sls
  3. {% from "salt/map.jinja" import salt_settings with context %}
  4. {#- Resorting to this ugly hack since the state doesn't handle if the `baseurl` is
  5. already configured under another name, such as used by the `salt-bootstrap` #}
  6. {%- if not salt["cmd.run"]("zypper lr --uri | grep " ~ salt_settings.pkgrepo) %}
  7. salt-pkgrepo-install-saltstack-suse:
  8. pkgrepo.managed:
  9. - name: systemsmanagement_saltstack_products
  10. - humanname: {{ salt_settings.pkgrepo_humanname }}
  11. - baseurl: {{ salt_settings.pkgrepo }}
  12. - enabled: 1
  13. - gpgcheck: 1
  14. - gpgkey: {{ salt_settings.key_url }}
  15. - gpgautoimport: true
  16. {%- endif %}