vars.yml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. ---
  2. openstack_infra_heat_stack: "{{ lookup('oo_option', 'infra_heat_stack' ) |
  3. default('files/heat_stack.yaml', 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: "{{ lookup('oo_option', 'master_flavor' ) | default('m1.small', True) }}"
  22. node: "{{ lookup('oo_option', 'node_flavor' ) | default('m1.medium', True) }}"
  23. deployment_vars:
  24. origin:
  25. image: "{{ lookup('oo_option', 'image_name') | default('centos-70-raw', True) }}"
  26. ssh_user: openshift
  27. sudo: yes
  28. online:
  29. image:
  30. ssh_user: root
  31. sudo: no
  32. enterprise:
  33. image: "{{ lookup('oo_option', 'image_name') | default('rhel-guest-image-7.1-20150224.0.x86_64', True) }}"
  34. ssh_user: openshift
  35. sudo: yes