-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloud-init.yaml
41 lines (41 loc) · 1.67 KB
/
cloud-init.yaml
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
#cloud-config
users:
- name: dave
sudo: ALL=(ALL) NOPASSWD:ALL
groups: sudo, docker
shell: /usr/bin/zsh
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDQyXtmrbFlbKDPwbr23OWYwZaOxt3s/dBbuU36l6RdM/EvqyLzNpEWwtz+xQYESV+jDtL33kYIDVWBaqklj+ejmZlpo6vK3yMEDA9+/FRRphpG0T+oGE0QYyS4FHo8xFQogHH5oEE5dAbASdKqYF4FhlGhDIg5/U4PuVKqNkQ3dz5eIG7CpSvGoxIB9lNEp8xTi8FamqqKcqZQAuUEN9ASUDwt71JhIVLaGCdgiMlxLYxmtKU+WMypGE/R8yTGBmlK+0i24adBpM867mNheSNulhqLZbvvbTYYjXUJst48nTHLAM/XdHatP70QSR2gNC6if4+ozj4F/9rw7u4zfNu+HF+bQ4Zme7kwALbh8TJXyy/9XOhspu00ML9vvJPFa2LjIAr5EtpnXdOLkGR1qzlu8tOOOKGetBhwGfUSTf/MVRQCWj+i8hQmIS/SQdzpJtvzVIfeLXltOTaTe+G7s5+NUQIcVs2GTi/JiTJygBbyuqyysBSgdJXBGAb0Gv5EKyjSxiEEtCUsEscp6pEdmzpTLl6VC8ow5NH9O6WtFHBI6AlPZPgYETXsnBmLNN8KdMsqYbPW/eSXhYgOK4VugwqEffO3Cr/eQ9e7iAqnF6KeW9OjNwXDTzEBpr2u/6H59mL63/G1h9VrA+4Wqux1LkTD36LVdUFqs/xe7O8ttrYQKQ== [email protected]
package_update: true
package_upgrade: true
packages:
- cmake
- direnv
- docker.io
- fd-find
- g++
- gettext
- jq
- mosh
- ninja-build
- ripgrep
- snapd
- socat
- software-properties-common
- tmux
- unzip
- zip
- zsh
write_files:
- path: /etc/motd
content: |
We're waiting..
runcmd:
- curl -o "/root/bootstrap.sh" "https://raw.githubusercontent.com/erichsend/workstation/main/bootstrap.sh"
- chmod +x /root/bootstrap.sh
- /root/bootstrap.sh
- curl -o "/home/dave/bootstrap-user.sh" "https://raw.githubusercontent.com/erichsend/workstation/main/bootstrap-user.sh"
- chmod +x /home/dave/bootstrap-user.sh
- chown dave:dave /home/dave/bootstrap-user.sh
# - sudo -u dave -- /home/dave/bootstrap-user.sh
# - ["usermod", "-s", "/usr/bin/zsh", dave"]