Skip to content

Commit f850f3b

Browse files
committed
feat: netplan security and apply
1 parent 381a838 commit f850f3b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

ansible/tasks/fix_ipv6_ndisc.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,7 @@
3131
systemd:
3232
name: systemd-networkd-check-and-fix.timer
3333
enabled: true
34+
35+
- name: Apply netplan configuration
36+
shell: sudo netplan apply
37+
when: debpkg_mode or nixpkg_mode

ebssurrogate/scripts/chroot-bootstrap-nix.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ network:
170170
dhcp4-overrides:
171171
send-hostname: false
172172
EOF
173+
# Set proper permissions for netplan security
174+
chmod 600 /etc/netplan/01-hostname.yaml
173175
}
174176

175177
# Set options for the default interface
@@ -181,6 +183,8 @@ network:
181183
eth0:
182184
dhcp4: true
183185
EOF
186+
# Set proper permissions for netplan security
187+
chmod 600 /etc/netplan/eth0.yaml
184188
}
185189

186190
function disable_sshd_passwd_auth {

0 commit comments

Comments
 (0)