-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapt.cloud-init.yaml
67 lines (62 loc) · 1.92 KB
/
apt.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#cloud-config
# vim: ft=yaml
package_update: true
package_upgrade: true
package_reboot_if_required: true
packages:
- apt-transport-https
- ca-certificates
- curl
- git
- gnupg2
- htop
- rsync
- software-properties-common
- tig
- tmux
- vim-nox
- multitail
- htop
runcmd:
- [ sh, -c, 'echo "APT::Install-Recommends \"0\";" >> /etc/apt/apt.conf.d/01norecommend' ]
- [ sh, -c, 'echo "APT::Install-Suggests "0";" >> /etc/apt/apt.conf.d/01norecommend' ]
- [ sh, -c, 'curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -' ]
- [ sh, -c, 'add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"' ]
- [ sh, -c, 'apt update' ]
- [ sh, -c, 'apt install -y docker-ce docker-ce-cli containerd.io' ]
- [ sh, -c, 'curl -L https://github.com/docker/compose/releases/download/$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep "tag_name" | cut -d \" -f4)/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose' ]
- [ sh, -c, 'chmod 755 /usr/local/bin/docker-compose' ]
- [ sh, -c, 'curl -sSf https://moncho.github.io/dry/dryup.sh | sudo sh' ]
- [ sh, -c, 'chmod 755 /usr/local/bin/dry' ]
- [ systemctl, start, docker ]
- [ sh, -c, 'apt autoremove --purge' ]
- [ sh, -c, 'apt clean' ]
system_info:
default_user:
name: tun
sudo: ALL=(ALL) NOPASSWD:ALL
groups: [docker, sudo]
disable_root: true
ssh_authorized_keys:
- ssh-rsa llave/pública/aquí/
locale: en_US.UTF-8
locale_configfile: /etc/default/locale
preserve_hostname: yes
fqdn: yalitza.tunlabs.mx
hostname: yalitza
timezone: America/Cancun
manual_cache_clean: False
apt_pipelining: False
apt:
preserve_sources_list: true
conf: |
APT {
Get {
Assume-Yes "true";
Fix-Broken "true";
};
};
power_state:
mode: reboot
message: Be right back!
final_message: "The system is finally up, after $UPTIME seconds"