- go
- GNU Make
- git
git clone https://github.com/mholasek/terraform-provider-multipass.git
cd terraform-provider-multipass
make
mkdir -p ~/.terraform.d/plugins/nobody.io/nobody/multipass/1.0.0/`go env GOOS`_`go env GOARCH`
cp bin/* ~/.terraform.d/plugins/nobody.io/nobody/multipass/1.0.0/`go env GOOS`_`go env GOARCH`
terraform {
required_providers {
multipass = {
source = "nobody.io/nobody/multipass"
# https://www.terraform.io/docs/configuration/providers.html#provider-source
}
}
required_version = ">= 0.13"
}
resource "multipass_vm" "vm01" {
name = "vm01"
cloud_init = "multipass/files/cloud-init.yaml"
cpus = "1"
memory_size = "1G"
disk_size = "10G"
image = "18.04"
}