Add test data

This commit is contained in:
Khue Doan 2021-02-15 00:10:39 +07:00
parent 01b9ff8207
commit eba194b78e
4 changed files with 66 additions and 0 deletions

12
test/Makefile Normal file
View File

@ -0,0 +1,12 @@
.POSIX:
run:
multipass list | grep homelab \
|| multipass launch \
--cpus 4 \
--mem 8G \
--disk 64G \
--cloud-init ./multipass-cloud-init.yaml \
--name homelab \
release:20.10
multipass shell homelab

9
test/README.md Normal file
View File

@ -0,0 +1,9 @@
# Test
This will create a virtual machine on your laptop to emulate layer 0 (metal).
You can run anything from layer 1 and up.
```sh
make
```

38
test/lxd.yaml Normal file
View File

@ -0,0 +1,38 @@
config:
core.https_address: 192.168.64.5:8443
core.trust_password: "1"
networks:
- config:
bridge.mode: fan
fan.underlay_subnet: auto
description: ""
name: lxdfan0
type: ""
project: default
storage_pools:
- config:
size: 50GB
description: ""
name: local
driver: zfs
profiles:
- config: {}
description: ""
devices:
eth0:
name: eth0
network: lxdfan0
type: nic
root:
path: /
pool: local
type: disk
name: default
cluster:
server_name: metal0
enabled: true
member_config: []
cluster_address: ""
cluster_certificate: ""
server_address: ""
cluster_password: ""

View File

@ -0,0 +1,7 @@
#cloud-config
runcmd:
- snap install --classic kubectl terraform
- snap install lxd terraform
- snap install kubectl --classic
- snap install terraform --classic