On Sun, 10 Mar 2019 at 00:26, <mich...@wanderingmad.com> wrote:

> I have ovirt currently running with 3 hyper-converged nodes, and loving
> it.  I've had some issues with kubernetes and would prefer to try out
> openshift / OKD, but the trick is i'd like to do it in a fault-tolerant
> way, with a load balancer, 2 masters and 3 works, but I can't seem to find
> a good way to do it, is there anyone that can offer help?  I tried using
> what was posted to the blog, but it was a single-node install and was never
> updated with part 2.
>

Hi Michael,

To build a multi node setup you to set this in your *vars.yaml*[1]. Also
you would need
to make sure your dns and dhcp is all setup. If you want to designate mac
addresses
for the VMs you can certainly do so, see this example[2]

Let me know what are you missing in the blog post, or what would you expect
and I'll
try to follow with another post.

[1] vars.yaml snippet
```yaml
openshift_ovirt_all_in_one: false

openshift_ovirt_vm_manifest:
  - name: 'master'
    count: 2
    profile: 'master_vm'
  - name: 'node'
    count: 3
    profile: 'node_vm'
  - name: 'lb'
    count: 1
    profile: 'master_vm'

openshift_ovirt_vm_profile:
  master_vm:
    cluster: "{{ openshift_ovirt_cluster }}"
    template: "{{ template_name }}"
    memory: "{{ vm_memory | default('8GiB') }}"
    cores: "{{ vm_cores | default(2) }}"
    high_availability: true
    disks:
      - size: 10GiB
        storage_domain: "{{ openshift_ovirt_data_store }}"
        name: docker_disk
        interface: virtio
    state: running
    cloud_init:
      root_password: admin
      authorized_ssh_keys: "{{ openshift_ovirt_ssh_key }}"
      custom_script: "{{ cloud_init_script_master }}"

  node_vm:
    cluster: "{{ openshift_ovirt_cluster }}"
    template: "{{ template_name }}"
    memory: "{{ vm_memory | default('16GiB') }}"
    cores: "{{ vm_cores | default(8) }}"
    high_availability: true
    disks:
      - size: 200GiB
        storage_domain: "{{ openshift_ovirt_data_store }}"
        name: docker_disk
        interface: virtio
    state: running
    cloud_init:
      root_password: admin
      authorized_ssh_keys: "{{ openshift_ovirt_ssh_key }}"
      custom_script: "{{ cloud_init_script_master }}"

cloud_init_script_master: |
  yum_repos:
    centos-ovirt42:
      baseurl: http://mirror.centos.org/centos/7/virt/x86_64/ovirt-4.2
      enabled: true
      gpgcheck: false
  packages:
    - ovirt-guest-agent
    - epel-release
    - centos-release-openshift-origin311
  runcmd:
    - sed -i 's/# ignored_nics =.*/ignored_nics = docker0, tun0 /'
/etc/ovirt-guest-agent.conf
    - systemctl enable ovirt-guest-agent
    - systemctl start ovirt-guest-agent
    - mkdir -p /var/lib/docker
    - /usr/sbin/mkfs.xfs -L dockervo /dev/vdb
  mounts:
    - [ '/dev/vdb', '/var/lib/docker', 'xfs', 'defaults,gquota' ]
  power_state:
    mode: reboot
    message: cloud init finished - boot and install openshift
    condition: True

```

[2]
https://github.com/openshift/openshift-ansible/tree/master/roles/openshift_ovirt#role-variables

_______________________________________________
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct:
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives:
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/R2A43PIZKFD4HZNB4OTETBXGCBAI5JRP/
>
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/UET7L4LHZM5QLSQVGOM3MJBKPCP6CVQK/

Reply via email to