provisioning-vars.yaml.example 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. qcow_url: # https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2c
  21. image_path: "{{ lookup('env', 'HOME') }}/Downloads/{{ template_name }}.qcow2"
  22. template_name: # rhel75
  23. template_cluster: "{{ openshift_ovirt_cluster }}"
  24. template_memory: 8GiB
  25. template_cpu: 1
  26. template_disk_storage: "{{ openshift_ovirt_data_store }}"
  27. template_disk_size: 60GiB
  28. template_nics:
  29. - name: nic1
  30. profile_name: # ovirtmgmt
  31. interface: virtio
  32. ##########################
  33. # Virtual Machines
  34. ##########################
  35. wait_for_ip: true # Required to gather IP addresses from amchines after
  36. vm_infra_wait_for_ip_retries: 10 # Higher than default to wait for all IPs on all VMs
  37. vm_infra_wait_for_ip_delay: 8
  38. # Virtual machine profile for master nodes
  39. # Differs from node profile by 16GiB RAM, extra disk for etcd
  40. master_vm:
  41. cluster: "{{ openshift_ovirt_cluster }}"
  42. template: "{{ template_name }}"
  43. memory: 16GiB
  44. cores: 2
  45. high_availability: true
  46. disks:
  47. - size: 15GiB
  48. storage_domain: "{{ openshift_ovirt_data_store }}"
  49. name: docker_disk
  50. interface: virtio
  51. - size: 30GiB
  52. storage_domain: "{{ openshift_ovirt_data_store }}"
  53. name: localvol_disk
  54. interface: virtio
  55. - size: 25GiB
  56. storage_domain: "{{ openshift_ovirt_data_store }}"
  57. name: etcd_disk
  58. interface: virtio
  59. state: running
  60. # Virtual Machine profile for rest of nodes
  61. node_vm:
  62. cluster: "{{ openshift_ovirt_cluster }}"
  63. template: "{{ template_name }}"
  64. memory: 8GiB
  65. cores: 2
  66. disks:
  67. - size: 15GiB
  68. storage_domain: "{{ openshift_ovirt_data_store }}"
  69. name: docker_disk
  70. interface: virtio
  71. - size: 30GiB
  72. storage_domain: "{{ openshift_ovirt_data_store }}"
  73. name: localvol_disk
  74. interface: virtio
  75. state: running
  76. openshift_ovirt_vm_manifest:
  77. ######################################
  78. # Single Node Static Ip addresses
  79. ######################################
  80. - name: 'master'
  81. count: 1
  82. profile: 'master_vm'
  83. nic_mode:
  84. master0:
  85. nic_ip_address: '192.168.123.165'
  86. nic_netmask: '255.255.255.0'
  87. nic_gateway: '192.168.123.1'
  88. nic_on_boot: True
  89. #######################################
  90. # Multiple Node Static Ip addresses
  91. #######################################
  92. - name: 'node'
  93. count: 2
  94. profile: 'node_vm'
  95. nic_mode:
  96. node0: # This must fit the same name as this kind of vms. (e.g) if the name is test, this must be test0
  97. nic_ip_address: '192.168.123.166'
  98. nic_netmask: '255.255.255.0'
  99. nic_gateway: '192.168.123.1'
  100. nic_on_boot: True
  101. node1:
  102. nic_ip_address: '192.168.123.168'
  103. nic_netmask: '255.255.255.0'
  104. nic_gateway: '192.168.123.1'
  105. nic_on_boot: True
  106. ################################################
  107. # Multiple/Single Node Dynamic Ip addresses
  108. ################################################
  109. - name: 'lb'
  110. count: 1
  111. profile: 'node_vm'