Needed because salt-cloud will attempt to load them even if they are filled with invalid default values, creating error spam.master
# This file managed by Salt, do not edit by hand!! | # This file managed by Salt, do not edit by hand!! | ||||
{% set cloud = salt['pillar.get']('salt:cloud', {}) -%} | |||||
{% if 'aws_key' in cloud %} | |||||
base_ubuntu_ec2: | base_ubuntu_ec2: | ||||
provider: ec2_ubuntu_public | provider: ec2_ubuntu_public | ||||
image: ami-cb4986bc | image: ami-cb4986bc | ||||
SecurityGroupId: | SecurityGroupId: | ||||
- sg-6ec11d3b | - sg-6ec11d3b | ||||
tag: {'Environment': 'production', 'Role': 'ubuntu'} | tag: {'Environment': 'production', 'Role': 'ubuntu'} | ||||
sync_after_install: grains | |||||
sync_after_install: grains | |||||
{% endif %} |
# This file managed by Salt, do not edit by hand!! | # This file managed by Salt, do not edit by hand!! | ||||
{%- set cloud = salt['pillar.get']('salt:cloud', {}) -%} | |||||
{%- if 'gce_project' in cloud %} | |||||
base_debian_gce: | base_debian_gce: | ||||
image: debian-7-wheezy | image: debian-7-wheezy | ||||
size: g1-small | size: g1-small | ||||
delete_boot_pd: True | delete_boot_pd: True | ||||
deploy: True | deploy: True | ||||
make_master: False | make_master: False | ||||
provider: gce | |||||
provider: gce | |||||
{%- endif %} |
# This file managed by Salt, do not edit by hand!! | # This file managed by Salt, do not edit by hand!! | ||||
{% set cloud = salt['pillar.get']('salt:cloud', {}) -%} | {% set cloud = salt['pillar.get']('salt:cloud', {}) -%} | ||||
{% if 'aws_key' in cloud %} | |||||
ec2_ubuntu_public: | ec2_ubuntu_public: | ||||
minion: | minion: | ||||
master: {{ cloud.get('master', 'salt') }} | master: {{ cloud.get('master', 'salt') }} | ||||
availability_zone: eu-west-1a | availability_zone: eu-west-1a | ||||
ssh_username: ubuntu | ssh_username: ubuntu | ||||
provider: ec2 | provider: ec2 | ||||
{% endif %} |
# This file managed by Salt, do not edit by hand!! | # This file managed by Salt, do not edit by hand!! | ||||
{% set cloud = salt['pillar.get']('salt:cloud', {}) -%} | |||||
{%- set cloud = salt['pillar.get']('salt:cloud', {}) -%} | |||||
{%- if 'gce_project' in cloud %} | |||||
gce: | gce: | ||||
project: "{{ cloud.get('gce_project', 'DEFAULT') }}" | project: "{{ cloud.get('gce_project', 'DEFAULT') }}" | ||||
service_account_email_address: "{{ cloud.get('gce_service_account_email_address', 'DEFAULT') }}" | service_account_email_address: "{{ cloud.get('gce_service_account_email_address', 'DEFAULT') }}" | ||||
grains: | grains: | ||||
test: True | test: True | ||||
provider: gce | provider: gce | ||||
{%- endif %} |