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.

19 rindas
720B

  1. # This file managed by Salt, do not edit by hand!!
  2. {%- from "salt/map.jinja" import salt_settings with context -%}
  3. {%- set cloud = salt['pillar.get']('salt:cloud', {}) -%}
  4. {%- if 'gce_project' in cloud %}
  5. gce:
  6. project: "{{ cloud.get('gce_project', 'DEFAULT') }}"
  7. service_account_email_address: "{{ cloud.get('gce_service_account_email_address', 'DEFAULT') }}"
  8. service_account_private_key: "{{ salt_settings.config_path }}/pki/cloud/gce.pem"
  9. minion:
  10. master: {{ cloud.get('master', 'salt') }}
  11. grains:
  12. test: True
  13. {%- if grains.saltversioninfo[0] >= 2016 or (grains.saltversioninfo[0] >= 2015 and grains.saltversioninfo[1] >= 8) %}
  14. driver: gce
  15. {%- else %}
  16. provider: gce
  17. {%- endif %}
  18. {%- endif %}