Skip to content

Commit

Permalink
Add a cloud-init fragment to reapply the netplan config
Browse files Browse the repository at this point in the history
The Netplan config is created by cloud-init, but it needs to be
slightly modified and reapplied.  There is a Python script that fixes
the DHCP4 options in the netplan configuration already generated by
cloud-init.  This cloud-init fragment simply reapplies the Netplan
configuration after the modification.

See these issues for more details:
- cisagov/skeleton-packer#300
- canonical/cloud-init#4764
  • Loading branch information
jsf9k committed Jan 12, 2024
1 parent 9f5c827 commit 48d0a8e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cloudinit/fix-dhcp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---

# There is a Python script that fixes the DHCP4 options in the netplan
# configuration already generated by cloud-init. The following simply
# reapplies the Netplan configuration after the modification.
runcmd:
- [netplan, apply]

0 comments on commit 48d0a8e

Please sign in to comment.