vars.yml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. ---
  2. openstack_infra_heat_stack: "{{ lookup('oo_option', 'infra_heat_stack' ) |
  3. default('files/heat_stack.yml', True) }}"
  4. openstack_network_prefix: "{{ lookup('oo_option', 'network_prefix' ) |
  5. default('openshift-ansible-'+cluster_id, True) }}"
  6. openstack_network_cidr: "{{ lookup('oo_option', 'net_cidr' ) |
  7. default('192.168.' + ( ( 1048576 | random % 256 ) | string() ) + '.0/24', True) }}"
  8. openstack_network_external_net: "{{ lookup('oo_option', 'external_net' ) |
  9. default('external', True) }}"
  10. openstack_floating_ip_pools: "{{ lookup('oo_option', 'floating_ip_pools') |
  11. default('external', True) | oo_split() }}"
  12. openstack_network_dns: "{{ lookup('oo_option', 'dns' ) |
  13. default('8.8.8.8,8.8.4.4', True) | oo_split() }}"
  14. openstack_ssh_keypair: "{{ lookup('oo_option', 'keypair' ) |
  15. default(lookup('env', 'LOGNAME')+'_key', True) }}"
  16. openstack_ssh_public_key: "{{ lookup('file', lookup('oo_option', 'public_key') |
  17. default('~/.ssh/id_rsa.pub', True)) }}"
  18. openstack_ssh_access_from: "{{ lookup('oo_option', 'ssh_from') |
  19. default('0.0.0.0/0', True) }}"
  20. openstack_flavor:
  21. master:
  22. ram: "{{ lookup('oo_option', 'master_flavor_ram' ) | default(2048, True) }}"
  23. id: "{{ lookup('oo_option', 'master_flavor_id' ) | default(True) }}"
  24. include: "{{ lookup('oo_option', 'master_flavor_include') | default(True) }}"
  25. node:
  26. ram: "{{ lookup('oo_option', 'node_flavor_ram' ) | default(4096, True) }}"
  27. id: "{{ lookup('oo_option', 'node_flavor_id' ) | default(True) }}"
  28. include: "{{ lookup('oo_option', 'node_flavor_include' ) | default(True) }}"
  29. deployment_vars:
  30. origin:
  31. image:
  32. name: "{{ lookup('oo_option', 'image_name') | default('centos-70-raw', True) }}"
  33. id:
  34. ssh_user: openshift
  35. sudo: yes
  36. online:
  37. image:
  38. name:
  39. id:
  40. ssh_user: root
  41. sudo: no
  42. enterprise:
  43. image:
  44. name: "{{ lookup('oo_option', 'image_name') | default('rhel-guest-image-7.1-20150224.0.x86_64', True) }}"
  45. id:
  46. ssh_user: openshift
  47. sudo: yes