mirror of
https://github.com/saltstack-formulas/salt-formula.git
synced 2024-12-11 21:04:27 +01:00
87074cf3d9
As discussed in PR#305, these are defaults that even if they are configurable as probably not suited to a majority of users and causes delete/add output on highstate of user of the formula choses to use the same file name.
19 lines
720 B
Plaintext
19 lines
720 B
Plaintext
# This file managed by Salt, do not edit by hand!!
|
|
{%- from "salt/map.jinja" import salt_settings with context -%}
|
|
{%- set cloud = salt['pillar.get']('salt:cloud', {}) -%}
|
|
{%- if 'gce_project' in cloud %}
|
|
gce:
|
|
project: "{{ cloud.get('gce_project', 'DEFAULT') }}"
|
|
service_account_email_address: "{{ cloud.get('gce_service_account_email_address', 'DEFAULT') }}"
|
|
service_account_private_key: "{{ salt_settings.config_path }}/pki/cloud/gce.pem"
|
|
minion:
|
|
master: {{ cloud.get('master', 'salt') }}
|
|
grains:
|
|
test: True
|
|
{%- if grains.saltversioninfo[0] >= 2016 or (grains.saltversioninfo[0] >= 2015 and grains.saltversioninfo[1] >= 8) %}
|
|
driver: gce
|
|
{%- else %}
|
|
provider: gce
|
|
{%- endif %}
|
|
{%- endif %}
|