2014-07-20 16:59:38 +02:00
|
|
|
# This file managed by Salt, do not edit by hand!!
|
2016-03-29 19:28:47 +02:00
|
|
|
{%- from "salt/map.jinja" import salt_settings with context -%}
|
|
|
|
{%- set cloud = salt['pillar.get']('salt:cloud', {}) -%}
|
|
|
|
{%- if 'aws_key' in cloud %}
|
2014-07-20 16:59:38 +02:00
|
|
|
ec2_ubuntu_public:
|
|
|
|
minion:
|
2015-04-04 00:47:08 +02:00
|
|
|
master: {{ cloud.get('master', 'salt') }}
|
2014-07-20 16:59:38 +02:00
|
|
|
grains:
|
|
|
|
test: True
|
2020-09-20 16:47:04 +02:00
|
|
|
metadata_server_grains: True
|
2014-07-20 16:59:38 +02:00
|
|
|
ssh_interface: public_ips
|
2015-04-04 00:47:08 +02:00
|
|
|
id: {{ cloud.get('aws_key', 'DEFAULT') }}
|
|
|
|
key: '{{ cloud.get('aws_secret', 'DEFAULT') }}'
|
2016-03-29 19:28:47 +02:00
|
|
|
private_key: {{ salt_settings.config_path }}/pki/cloud/ec2.pem
|
2014-07-20 16:59:38 +02:00
|
|
|
keyname: keyname
|
|
|
|
location: eu-west-1
|
|
|
|
availability_zone: eu-west-1a
|
|
|
|
ssh_username: ubuntu
|
2016-04-01 08:17:35 +02:00
|
|
|
{%- if grains.saltversioninfo[0] >= 2016 or (grains.saltversioninfo[0] >= 2015 and grains.saltversioninfo[1] >= 8) %}
|
2016-04-01 04:39:55 +02:00
|
|
|
driver: ec2
|
2016-04-01 08:17:35 +02:00
|
|
|
{%- else %}
|
|
|
|
provider: ec2
|
|
|
|
{%- endif %}
|
2016-03-29 19:28:47 +02:00
|
|
|
{%- endif %}
|