provisioning-vars.yaml.example 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. ---
  2. ###########################
  3. # Engine Connection
  4. ###########################
  5. compatibility_version: 4.2
  6. engine_url: # https://engine.example.com/ovirt-engine/api
  7. engine_user: # admin@internal
  8. engine_password: # secret
  9. # CA file copied from engine:/etc/pki/ovirt-engine/ca.pem
  10. # path is relative to openshift-cluster directory
  11. engine_cafile: # ../ca.pem
  12. data_center_name: # Default
  13. openshift_ovirt_cluster: # Default
  14. openshift_ovirt_data_store: # vmstore
  15. openshift_ovirt_ssh_key: "{{ lookup('file', '~/.ssh/id_rsa.pub') }}"
  16. ##########################
  17. # Template Creation
  18. # https://github.com/oVirt/ovirt-ansible-image-template
  19. ##########################
  20. # If you comment the 'qcow_url' variable the template upload role will not be loaded
  21. qcow_url: # https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2c
  22. image_path: "{{ lookup('env', 'HOME') }}/Downloads/{{ template_name }}.qcow2"
  23. template_name: # rhel75
  24. template_cluster: "{{ openshift_ovirt_cluster }}"
  25. template_memory: 8GiB
  26. template_cpu: 1
  27. template_disk_storage: "{{ openshift_ovirt_data_store }}"
  28. template_disk_size: 60GiB
  29. template_nics:
  30. - name: nic1
  31. profile_name: # ovirtmgmt
  32. interface: virtio
  33. ##########################
  34. # Virtual Machines
  35. ##########################
  36. wait_for_ip: true # Required to gather IP addresses from amchines after
  37. vm_infra_wait_for_ip_retries: 10 # Higher than default to wait for all IPs on all VMs
  38. vm_infra_wait_for_ip_delay: 8
  39. # Virtual machine profile for master nodes
  40. # Differs from node profile by 16GiB RAM, extra disk for etcd
  41. master_vm:
  42. cluster: "{{ openshift_ovirt_cluster }}"
  43. template: "{{ template_name }}"
  44. memory: 16GiB
  45. cores: 2
  46. high_availability: true
  47. disks:
  48. - size: 15GiB
  49. storage_domain: "{{ openshift_ovirt_data_store }}"
  50. name: docker_disk
  51. interface: virtio
  52. - size: 30GiB
  53. storage_domain: "{{ openshift_ovirt_data_store }}"
  54. name: localvol_disk
  55. interface: virtio
  56. - size: 25GiB
  57. storage_domain: "{{ openshift_ovirt_data_store }}"
  58. name: etcd_disk
  59. interface: virtio
  60. state: running
  61. # Virtual Machine profile for rest of nodes
  62. node_vm:
  63. cluster: "{{ openshift_ovirt_cluster }}"
  64. template: "{{ template_name }}"
  65. memory: 8GiB
  66. cores: 2
  67. disks:
  68. - size: 15GiB
  69. storage_domain: "{{ openshift_ovirt_data_store }}"
  70. name: docker_disk
  71. interface: virtio
  72. - size: 30GiB
  73. storage_domain: "{{ openshift_ovirt_data_store }}"
  74. name: localvol_disk
  75. interface: virtio
  76. state: running
  77. openshift_ovirt_vm_manifest:
  78. ######################################
  79. # Single Node Static Ip addresses
  80. ######################################
  81. - name: 'master'
  82. count: 1
  83. profile: 'master_vm'
  84. nic_mode:
  85. master0:
  86. nic_ip_address: '192.168.123.165'
  87. nic_netmask: '255.255.255.0'
  88. nic_gateway: '192.168.123.1'
  89. nic_on_boot: True
  90. #######################################
  91. # Multiple Node Static Ip addresses
  92. #######################################
  93. - name: 'node'
  94. count: 2
  95. profile: 'node_vm'
  96. nic_mode:
  97. node0: # This must fit the same name as this kind of vms. (e.g) if the name is test, this must be test0
  98. nic_ip_address: '192.168.123.166'
  99. nic_netmask: '255.255.255.0'
  100. nic_gateway: '192.168.123.1'
  101. nic_on_boot: True
  102. node1:
  103. nic_ip_address: '192.168.123.168'
  104. nic_netmask: '255.255.255.0'
  105. nic_gateway: '192.168.123.1'
  106. nic_on_boot: True
  107. ################################################
  108. # Multiple/Single Node Dynamic Ip addresses
  109. ################################################
  110. - name: 'lb'
  111. count: 1
  112. profile: 'node_vm'