LXD Resource provider for Terraform
This provider is published in the Terraform Registry.
Follow the official instructions for declaring providers in your Terraform configuration here.
Add the following to your Terraform configuration:
terraform {
required_providers {
lxd = {
source = "terraform-lxd/lxd"
}
}
}
- Follow these instructions to setup a Golang development environment.
- Use
go get
to pull down this repository and compile the binary:
go get -v -u github.com/terraform-lxd/terraform-provider-lxd
Full documentation can be found in the docs
directory.
Many of the base LXD images don't include an SSH server, therefore terraform
will be unable to execute any provisioners
. Either use the base ubuntu images
from the ubuntu
or ubuntu-daily
or manually prepare a base image that
includes SSH.
Some recognition for great contributors to this project: