Saltstack Official Salt Formula
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

1234567891011121314151617181920212223
  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. ssh_interface: public_ips
  11. id: {{ cloud.get('aws_key', 'DEFAULT') }}
  12. key: '{{ cloud.get('aws_secret', 'DEFAULT') }}'
  13. private_key: {{ salt_settings.config_path }}/pki/cloud/ec2.pem
  14. keyname: keyname
  15. location: eu-west-1
  16. availability_zone: eu-west-1a
  17. ssh_username: ubuntu
  18. {%- if grains.saltversioninfo[0] >= 2016 or (grains.saltversioninfo[0] >= 2015 and grains.saltversioninfo[1] >= 8) %}
  19. driver: ec2
  20. {%- else %}
  21. provider: ec2
  22. {%- endif %}
  23. {%- endif %}