Saltstack Official Salt Formula
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

1234567891011121314151617
  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 %}