Skip to content

Commit

Permalink
vlan: toggle vlan configuration in debian packaging (#495)
Browse files Browse the repository at this point in the history
We are enabling vlan support by default for debian systems. Note we
are not forcing overwriting the configuration for updated instances,
user will need to manually toggle the configuration for long running
instances if they need/want to enable it.
  • Loading branch information
dorileo authored Feb 4, 2025
1 parent b1d8159 commit 63863cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions instance_configs.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ dhclient_script = /sbin/google-dhclient-script
dhcp_command =
ip_forwarding = true
setup = true
vlan_setup_enabled = false

[OSLogin]
cert_authentication = true
1 change: 1 addition & 0 deletions packaging/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ override_dh_auto_install:
# Binary-only package.
dh_auto_install -- --no-source
install -d debian/google-guest-agent/usr/share/google-guest-agent
sed -i "s/vlan_setup_enabled = false/vlan_setup_enabled = true/g" instance_configs.cfg
install -p -m 0644 instance_configs.cfg debian/google-guest-agent/usr/share/google-guest-agent
install -d debian/google-guest-agent/lib/systemd/system
install -p -m 0644 gce-workload-cert-refresh.timer debian/google-guest-agent/lib/systemd/system/
Expand Down

0 comments on commit 63863cb

Please sign in to comment.