Skip to content

Commit

Permalink
Merge pull request oVirt#304 from eslutsky/make-eth0-consistent
Browse files Browse the repository at this point in the history
configure engine VM to start with consistent interface name: eth0
  • Loading branch information
eslutsky authored Mar 10, 2020
2 parents 7613356 + e7973c6 commit 180dbae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/bootstrap_local_vm/02_create_local_vm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@
with_items:
- {src: templates/user-data.j2, dest: "{{ he_local_vm_dir }}/user-data"}
- {src: templates/meta-data.j2, dest: "{{ he_local_vm_dir }}/meta-data"}
- {src: templates/network-config-dhcp6.j2, dest: "{{ he_local_vm_dir }}/network-config"}
- {src: templates/network-config-dhcp.j2, dest: "{{ he_local_vm_dir }}/network-config"}
- name: Create ISO disk
command: >-
mkisofs -output {{ he_local_vm_dir }}/seed.iso -volid cidata -joliet -rock -input-charset utf-8
{{ he_local_vm_dir }}/meta-data {{ he_local_vm_dir }}/user-data
{{ he_local_vm_dir + '/network-config' if ipv6_deployment else None }}
{{ he_local_vm_dir }}/network-config
environment: "{{ he_cmd_lang }}"
changed_when: true
- name: Create local VM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ config:
name: eth0
mac_address: {{ he_vm_mac_addr }}
subnets:
{% if ipv6_deployment %}
- type: dhcp6
{% else %}
- type: dhcp
{% endif %}

0 comments on commit 180dbae

Please sign in to comment.