Saltstack Official Salt Formula
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

_gce.conf 720B

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