Преглед на файлове

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.
tags/v0.57.0
Andrew Vant преди 9 години
родител
ревизия
7e074dc379
променени са 4 файла, в които са добавени 14 реда и са изтрити 11 реда
  1. +3
    -3
      salt/files/cloud.providers.d/ec2.conf
  2. +3
    -3
      salt/files/cloud.providers.d/gce.conf
  3. +4
    -4
      salt/files/cloud.providers.d/rsos.conf
  4. +4
    -1
      salt/files/cloud.providers.d/saltify.conf

+ 3
- 3
salt/files/cloud.providers.d/ec2.conf Целия файл

@@ -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

+ 3
- 3
salt/files/cloud.providers.d/gce.conf Целия файл

@@ -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

+ 4
- 4
salt/files/cloud.providers.d/rsos.conf Целия файл

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

+ 4
- 1
salt/files/cloud.providers.d/saltify.conf Целия файл

@@ -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…
Отказ
Запис