mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-07 05:51:17 +07:00
Working etcd backend for terraform
This commit is contained in:
parent
59e5624c02
commit
6b6f65893f
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
|
||||
|
Loading…
Reference in New Issue
Block a user