Saltstack Official Salt Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_ec2.conf 809B

123456789101112131415161718192021222324
  1. # This file managed by Salt, do not edit by hand!!
  2. {%- from "salt/map.jinja" import salt_settings with context -%}
  3. {%- set cloud = salt['pillar.get']('salt:cloud', {}) -%}
  4. {%- if 'aws_key' in cloud %}
  5. ec2_ubuntu_public:
  6. minion:
  7. master: {{ cloud.get('master', 'salt') }}
  8. grains:
  9. test: True
  10. metadata_server_grains: True
  11. ssh_interface: public_ips
  12. id: {{ cloud.get('aws_key', 'DEFAULT') }}
  13. key: '{{ cloud.get('aws_secret', 'DEFAULT') }}'
  14. private_key: {{ salt_settings.config_path }}/pki/cloud/ec2.pem
  15. keyname: keyname
  16. location: eu-west-1
  17. availability_zone: eu-west-1a
  18. ssh_username: ubuntu
  19. {%- if grains.saltversioninfo[0] >= 2016 or (grains.saltversioninfo[0] >= 2015 and grains.saltversioninfo[1] >= 8) %}
  20. driver: ec2
  21. {%- else %}
  22. provider: ec2
  23. {%- endif %}
  24. {%- endif %}