deploy: time zone, netplan config
This commit is contained in:
parent
bf5f6d8da8
commit
8f8e3eda4d
|
@ -12,6 +12,7 @@ apt update
|
||||||
apt install -y git vim zsh tmux
|
apt install -y git vim zsh tmux
|
||||||
curl dotfiles.cn | bash -s - -al
|
curl dotfiles.cn | bash -s - -al
|
||||||
chsh -s /bin/zsh
|
chsh -s /bin/zsh
|
||||||
|
timedatectl set-timezone "Asia/Shanghai"
|
||||||
|
|
||||||
# ssh
|
# ssh
|
||||||
sed -i "s/#Port 22/Port 12022/" /etc/ssh/sshd_config
|
sed -i "s/#Port 22/Port 12022/" /etc/ssh/sshd_config
|
||||||
|
|
23
testbed/scripts/netplan.example.yaml
Normal file
23
testbed/scripts/netplan.example.yaml
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
network:
|
||||||
|
ethernets:
|
||||||
|
eno1:
|
||||||
|
dhcp4: true
|
||||||
|
dhcp6: true
|
||||||
|
routes:
|
||||||
|
- to: default
|
||||||
|
via: 192.168.16.118
|
||||||
|
metric: 90
|
||||||
|
- to: default
|
||||||
|
via: "2001:da8:bf:300::1"
|
||||||
|
metric: 90
|
||||||
|
on-link: true
|
||||||
|
eno2:
|
||||||
|
dhcp4: true
|
||||||
|
dhcp6: true
|
||||||
|
ens13np0:
|
||||||
|
addresses:
|
||||||
|
- 12.12.12.109/24
|
||||||
|
nameservers:
|
||||||
|
addresses: []
|
||||||
|
search: []
|
||||||
|
version: 2
|
Loading…
Reference in New Issue
Block a user