-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloud-init.yaml
36 lines (32 loc) · 1.04 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
#cloud-config
users:
- name: mindful_user
sudo: ALL=(ALL) NOPASSWD:ALL
shell: /bin/bash
hashed_passwd: "$6$rounds=4096$s9ZQkQ.mGxqf7x7r$ytKPcvh3RCjJ7Q/tEjKVXYyg2W96BmjfQ/o4vSlAN.jc.UpCi1pGTH0wRrRsw3gR0ASPRiBxR8L7/nRtFZiw31"
ssh_authorized_keys:
- <your pubkey>
# Install packages
packages:
- htop
- tmux
- vim
- python3-pip
- podman
package_update: true
package_upgrade: true
package_reboot_if_required: true
# Modify the Docker registries
# Does not work, module is not executed by cloud init?
#write_files:
# - content: |
# unqualified-search-registries = ["registry.ipv6.docker.com"]
# short-name-mode="enforcing"
# path: '/etc/containers/registries.conf'
# owner: 'root:root'
# permissions: '0644'
# defer: true
runcmd:
- ["modprobe", "ip_tables"]
- echo -e 'unqualified-search-registries = ["registry.ipv6.docker.com"]\nshort-name-mode="enforcing"' > /etc/containers/registries.conf
- ["python3", "-m", "pip", "install", "https://github.com/containers/podman-compose/archive/devel.tar.gz"]