-
Notifications
You must be signed in to change notification settings - Fork 1
/
sample-config.yaml
31 lines (31 loc) · 1.7 KB
/
sample-config.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
--- # sample config for building vms using cloudinit-kvm
project: 'my-dockerlab'
common:
backingdisk: /home/ahmad/Desktop/Docker/debian-10.4.1-20200515-openstack-amd64.qcow2
size: 10G
directory: /home/ahmad/Desktop/Docker
cpu: 1
mem: 512
userdata:
# cloud-config
preserve_hostname: false
password: cloudimg
ssh_pwauth: true
users:
- name: local
groups: wheel
sudo: ['ALL=(ALL) NOPASSWD:ALL']
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDE4g1A0NaYp16wpa624yk1gvric4oeTkgdG7rojH2zzYFURAt612T4obzFLir55QCmWvjsbRDtEK9N1ZW8oFY+REPgSczJFqfnoLeDv3iPy/a+TK6yG8WuhfiKlk519G8c021fduqo7njiY5T/wyRcyBefr5ogfALr5F5irsJcQjv62H+9DTJmS5lYf2ge1OggVCYtEO1k8pqy9xAKc9R/yMcKO9arTtfYYeGgkTKBLPa/83DS5pNDYAJ/DEY2Efx8B7npW5KwT6cKKHA/SjGd45VUsSEkU747VkT5zP5ImXYfjI7cMMxJBm7KQboBWeCDLYSmExtEG7TY9rCwnZ9VOEgivIDT6CauA7N2Db2YnQih92xs2D+ryRLjEar580Z40FaUCCqVAZlJSIZqw379bv3KVLClImLHxzKU7v1a4j29SOrmsK7h2gTAsVcl4r6q9XfQJ7bj9YG4z9TSf16pMbXa08czXBQMyy+41JXVD+SQjnFWebr/o3tGaGjAnHE= ahmad@mymachine
runcmd:
- 'sudo apt update; sudo apt-get install apt-transport-https ca-certificates -y'
- 'sudo apt install curl gnupg-agent software-properties-common -y '
- 'curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -'
- 'apt-key fingerprint 0EBFCD88 -y'
- 'add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"'
- 'sudo apt-get install docker-ce docker-ce-cli containerd.io'
vms:
- fqdn: docker101.lab # fqdn for the virtual machine
ipaddr: 192.168.122.100 # ipaddr for the virtual machine
- fqdn: docker102.lab
ipaddr: 192.168.122.50