Skip to content
This repository has been archived by the owner on Feb 9, 2022. It is now read-only.

configure engine VM to start with consistent interface name: eth0 #304

Merged
merged 1 commit into from
Mar 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 %}