mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-07 14:03:01 +07:00
Fix can't create tfstate container
This commit is contained in:
parent
f7a02d99b3
commit
9b458435e0
@ -1,9 +1,11 @@
|
||||
terraform {
|
||||
# TODO (feature) Generate endpoint automatically (terragrunt for variable)
|
||||
#backend "etcdv3" {
|
||||
# endpoints = ["192.168.1.110:2379"]
|
||||
# lock = true
|
||||
#}
|
||||
backend "etcdv3" {
|
||||
endpoints = [
|
||||
"192.168.1.110:23799"
|
||||
]
|
||||
lock = true
|
||||
}
|
||||
|
||||
required_providers {
|
||||
rke = {
|
||||
|
@ -1,3 +1,7 @@
|
||||
- name: Install Python library for the Docker
|
||||
dnf:
|
||||
name: python-docker
|
||||
|
||||
- name: Create etcd container
|
||||
docker_container:
|
||||
name: etcd-tfstate
|
||||
@ -6,6 +10,6 @@
|
||||
env:
|
||||
ALLOW_NONE_AUTHENTICATION: "yes"
|
||||
published_ports:
|
||||
- 2379:2379
|
||||
- 23799:2379
|
||||
volumes:
|
||||
- tfstate:/bitnami/etcd/data
|
||||
|
Loading…
Reference in New Issue
Block a user