Saltstack Official Salt Formula
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

install.sls 669B

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.shell"]("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 %}