mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-05 21:11:52 +07:00
Add test data
This commit is contained in:
parent
01b9ff8207
commit
eba194b78e
12
test/Makefile
Normal file
12
test/Makefile
Normal 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
9
test/README.md
Normal 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
38
test/lxd.yaml
Normal 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: ""
|
7
test/multipass-cloud-init.yaml
Normal file
7
test/multipass-cloud-init.yaml
Normal 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
|
Loading…
Reference in New Issue
Block a user