New version of salt-formula from Saltstack
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.

35 line
1004B

  1. {{ provider_name }}:
  2. provider: {{ provider.engine }}
  3. {%- if provider.insecure is defined %}
  4. insecure: true
  5. {%- endif %}
  6. identity_url: '{{ provider.identity_url }}'
  7. {%- if provider.compute_name is defined %}
  8. compute_name: {{ provider.get('compute_name', 'nova') }}
  9. {%- endif %}
  10. protocol: ipv4
  11. compute_region: {{ provider.region }}
  12. tenant: {{ provider.tenant }}
  13. user: {{ provider.user }}
  14. {%- if provider.api_key is defined %}
  15. apikey: {{ provider.api_key }}
  16. {%- elif provider.password is defined %}
  17. password: {{ provider.password }}
  18. {%- endif %}
  19. ssh_key_name: salt-cloud
  20. ssh_key_file: /root/.ssh/id_rsa
  21. ssh_interface: {{ provider.get('interface', 'private') }}_ips
  22. networks:
  23. - fixed:
  24. {%- for net in provider.fixed_networks %}
  25. - {{ net }}
  26. {%- endfor %}
  27. - floating:
  28. {%- for net in provider.floating_networks %}
  29. - {{ net }}
  30. {%- endfor %}
  31. {%- if provider.ignore_cidr is defined %}
  32. ignore_cidr: {{ provider.ignore_cidr }}
  33. {%- endif %}