mirror of
https://github.com/khuedoan/homelab.git
synced 2025-07-04 07:17:53 +07:00
Working etcd backend for terraform
This commit is contained in:
6
infra/lxd/terraform.tf
Normal file
6
infra/lxd/terraform.tf
Normal file
@ -0,0 +1,6 @@
|
||||
terraform {
|
||||
backend "etcdv3" {
|
||||
endpoints = [ "localhost:2379" ]
|
||||
lock = true
|
||||
}
|
||||
}
|
@ -1,8 +1,10 @@
|
||||
- name: Create etcd container
|
||||
docker_container:
|
||||
name: etcd-tfstate
|
||||
image: quay.io/coreos/etcd
|
||||
exposed_ports:
|
||||
- 2379
|
||||
image: bitnami/etcd
|
||||
env:
|
||||
ALLOW_NONE_AUTHENTICATION: "yes"
|
||||
published_ports:
|
||||
- 2379:2379
|
||||
volumes:
|
||||
- default.etcd
|
||||
- /bitnami/etcd/data
|
||||
|
Reference in New Issue
Block a user