Skip to content

Commit

Permalink
fix: Problem with IP_OPT assignment
Browse files Browse the repository at this point in the history
Signed-off-by: Klaus Smolin <[email protected]>
  • Loading branch information
smolin-de committed Jun 23, 2023
1 parent 8f44a9a commit cf827d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/create_compute_nodes/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
shell: |
virsh destroy {{ env.cluster.nodes.compute.vm_name[i] }} || true
virsh undefine {{ env.cluster.nodes.compute.vm_name[i] }} --remove-all-storage || true
IP_OPT=="{{ env.cluster.nodes.compute.ip[i] }}::{{ env.cluster.networking.gateway }}:{{ env.cluster.networking.subnetmask }}:{{ env.cluster.nodes.compute.hostname[i] }}::none:1500"
IP_OPT="{{ env.cluster.nodes.compute.ip[i] }}::{{ env.cluster.networking.gateway }}:{{ env.cluster.networking.subnetmask }}:{{ env.cluster.nodes.compute.hostname[i] }}::none:1500"
{{ ("IP_OPT=dhcp") if env.cluster.nodes.compute.mac[i] is defined }}
virt-install \
--name {{ env.cluster.nodes.compute.vm_name[i] }} \
Expand Down

0 comments on commit cf827d0

Please sign in to comment.