New version of salt-formula from Saltstack
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

35 行
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 %}