Supplied default values for all pillar queries in provider templates.
These aren't intended to function; they're here to allow the use of file.recurse on the provider folder, without requiring the user to provide pillar data for templates they're not using.
This commit is contained in:
parent
fb1d7e8d3b
commit
7e074dc379
@ -2,12 +2,12 @@
|
||||
{% set cloud = salt['pillar.get']('salt:cloud', {}) -%}
|
||||
ec2_ubuntu_public:
|
||||
minion:
|
||||
master: {{ cloud['master'] }}
|
||||
master: {{ cloud.get('master', 'salt') }}
|
||||
grains:
|
||||
test: True
|
||||
ssh_interface: public_ips
|
||||
id: {{ cloud['aws_key'] }}
|
||||
key: '{{ cloud['aws_secret'] }}'
|
||||
id: {{ cloud.get('aws_key', 'DEFAULT') }}
|
||||
key: '{{ cloud.get('aws_secret', 'DEFAULT') }}'
|
||||
private_key: /etc/salt/cloud.providers.d/key/key.pem
|
||||
keyname: keyname
|
||||
location: eu-west-1
|
||||
|
@ -1,11 +1,11 @@
|
||||
# This file managed by Salt, do not edit by hand!!
|
||||
{% set cloud = salt['pillar.get']('salt:cloud', {}) -%}
|
||||
gce:
|
||||
project: "{{ cloud['gce_project'] }}"
|
||||
service_account_email_address: "{{ cloud['gce_service_account_email_address'] }}"
|
||||
project: "{{ cloud.get('gce_project', 'DEFAULT') }}"
|
||||
service_account_email_address: "{{ cloud.get('gce_service_account_email_address', 'DEFAULT') }}"
|
||||
service_account_private_key: "/etc/salt/cloud.providers.d/key.pem"
|
||||
minion:
|
||||
master: {{ cloud['master'] }}
|
||||
master: {{ cloud.get('master', 'salt') }}
|
||||
grains:
|
||||
test: True
|
||||
provider: gce
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
rsos_{{ region|lower }}:
|
||||
minion:
|
||||
master: {{ cloud['master'] }}
|
||||
master: {{ cloud.get('master', 'salt') }}
|
||||
grains:
|
||||
region: {{ region|lower }}
|
||||
|
||||
@ -15,7 +15,7 @@ rsos_{{ region|lower }}:
|
||||
protocol: ipv4
|
||||
compute_region: {{ region }}
|
||||
provider: openstack
|
||||
user: {{ cloud['rsos_user'] }}
|
||||
tenant: {{ cloud['rsos_tenant'] }}
|
||||
apikey: {{ cloud['rsos_apikey'] }}
|
||||
user: {{ cloud.get('rsos_user', 'DEFAULT') }}
|
||||
tenant: {{ cloud.get('rsos_tenant', 'DEFAULT') }}
|
||||
apikey: {{ cloud.get('rsos_apikey', 'DEFAULT') }}
|
||||
{% endfor %}
|
||||
|
@ -1,5 +1,8 @@
|
||||
# This file is managed by Salt via {{ source }}
|
||||
|
||||
{% set cloud = salt['pillar.get']('salt:cloud', {}) -%}
|
||||
|
||||
saltify:
|
||||
provider: saltify
|
||||
minion:
|
||||
master: {{ cloud['master'] }}
|
||||
master: {{ cloud.get('master', 'salt') }}
|
||||
|
Loading…
Reference in New Issue
Block a user