-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloud-init-base.yaml
More file actions
44 lines (40 loc) · 1.2 KB
/
cloud-init-base.yaml
File metadata and controls
44 lines (40 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#cloud-config
output: {all: '| tee -a /var/log/cloud-init-output.log'}
package_update: true
package_upgrade: true
packages:
- git
- curl
- wget
- zsh
- vim
- bash-completion
- pastebinit
- python3
- python3-pip
- apt-transport-https
- ca-certificates
- software-properties-common
- mlocate
- tree
runcmd:
- pip3 install archey4
- runuser -l ubuntu -c 'sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"'
- chsh -s $(which zsh) ubuntu
- echo "source ~/.profile" >> /home/ubuntu/.zshrc
- echo "archey" >> /home/ubuntu/.zshrc
- git clone https://github.com/zsh-users/zsh-autosuggestions.git /home/ubuntu/.oh-my-zsh/custom/plugins/zsh-autosuggestions
- git clone https://github.com/zsh-users/zsh-syntax-highlighting.git /home/ubuntu/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
- sed -i 's/^plugins=.*/plugins=(git zsh-autosuggestions zsh-syntax-highlighting)/g' /home/ubuntu/.zshrc
write_files:
- path: /etc/netplan/60-bridge.yaml
content: |
network:
ethernets:
enp0s8:
dhcp4: true
dhcp4-overrides:
route-metric: 200
version: 2
owner: root:root
permissions: '0644'