location: eu-west-1 | location: eu-west-1 | ||||
availability_zone: eu-west-1a | availability_zone: eu-west-1a | ||||
ssh_username: ubuntu | ssh_username: ubuntu | ||||
{%- if grains.saltversioninfo[0] >= 2016 or (grains.saltversioninfo[0] >= 2015 and grains.saltversioninfo[1] >= 8) %} | |||||
driver: ec2 | driver: ec2 | ||||
{%- else %} | |||||
provider: ec2 | |||||
{%- endif %} | |||||
{%- endif %} | {%- endif %} |
master: {{ cloud.get('master', 'salt') }} | master: {{ cloud.get('master', 'salt') }} | ||||
grains: | grains: | ||||
test: True | test: True | ||||
{%- if grains.saltversioninfo[0] >= 2016 or (grains.saltversioninfo[0] >= 2015 and grains.saltversioninfo[1] >= 8) %} | |||||
driver: gce | driver: gce | ||||
{%- else %} | |||||
provider: gce | |||||
{%- endif %} | |||||
{%- endif %} | {%- endif %} |
compute_name: cloudServersOpenStack | compute_name: cloudServersOpenStack | ||||
protocol: ipv4 | protocol: ipv4 | ||||
compute_region: {{ region }} | compute_region: {{ region }} | ||||
{%- if grains.saltversioninfo[0] >= 2016 or (grains.saltversioninfo[0] >= 2015 and grains.saltversioninfo[1] >= 8) %} | |||||
driver: openstack | driver: openstack | ||||
{%- else %} | |||||
provider: openstack | |||||
{%- endif %} | |||||
user: {{ cloud.get('rsos_user', 'DEFAULT') }} | user: {{ cloud.get('rsos_user', 'DEFAULT') }} | ||||
tenant: {{ cloud.get('rsos_tenant', 'DEFAULT') }} | tenant: {{ cloud.get('rsos_tenant', 'DEFAULT') }} | ||||
apikey: {{ cloud.get('rsos_apikey', 'DEFAULT') }} | apikey: {{ cloud.get('rsos_apikey', 'DEFAULT') }} |
{% set cloud = salt['pillar.get']('salt:cloud', {}) -%} | {% set cloud = salt['pillar.get']('salt:cloud', {}) -%} | ||||
saltify: | saltify: | ||||
{%- if grains.saltversioninfo[0] >= 2016 or (grains.saltversioninfo[0] >= 2015 and grains.saltversioninfo[1] >= 8) %} | |||||
driver: saltify | driver: saltify | ||||
{%- else %} | |||||
provider: saltify | |||||
{%- endif %} | |||||
minion: | minion: | ||||
master: {{ cloud.get('master', 'salt') }} | master: {{ cloud.get('master', 'salt') }} |