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.

19 lines
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 %}