vars.yml 1.8 KB

123456789101112131415161718192021222324252627282930313233
  1. ---
  2. openstack_infra_heat_stack: "{{ lookup('oo_option', 'infra_heat_stack' ) |
  3. default('files/heat_stack.yaml', True) }}"
  4. openstack_network_cidr: "{{ lookup('oo_option', 'net_cidr' ) |
  5. default('192.168.' + ( ( 1048576 | random % 256 ) | string() ) + '.0/24', True) }}"
  6. openstack_network_external_net: "{{ lookup('oo_option', 'external_net' ) |
  7. default('external', True) }}"
  8. openstack_floating_ip_pool: "{{ lookup('oo_option', 'floating_ip_pool' ) |
  9. default('external', True) }}"
  10. openstack_network_dns: "{{ lookup('oo_option', 'dns' ) |
  11. default('8.8.8.8,8.8.4.4', True) | oo_split() }}"
  12. openstack_ssh_public_key: "{{ lookup('file', lookup('oo_option', 'public_key') |
  13. default('~/.ssh/id_rsa.pub', True)) }}"
  14. openstack_ssh_access_from: "{{ lookup('oo_option', 'ssh_from') |
  15. default('0.0.0.0/0', True) }}"
  16. openstack_flavor:
  17. master: "{{ lookup('oo_option', 'master_flavor' ) | default('m1.small', True) }}"
  18. infra: "{{ lookup('oo_option', 'infra_flavor' ) | default('m1.small', True) }}"
  19. node: "{{ lookup('oo_option', 'node_flavor' ) | default('m1.medium', True) }}"
  20. deployment_vars:
  21. origin:
  22. image: "{{ lookup('oo_option', 'image_name') | default('centos-70-raw', True) }}"
  23. ssh_user: openshift
  24. sudo: yes
  25. online:
  26. image:
  27. ssh_user: root
  28. sudo: no
  29. enterprise:
  30. image: "{{ lookup('oo_option', 'image_name') | default('rhel-guest-image-7.1-20150224.0.x86_64', True) }}"
  31. ssh_user: openshift
  32. sudo: yes