diff --git a/metal/hosts.ini b/metal/hosts.ini index a3a8ddcc..f18ad7e4 100644 --- a/metal/hosts.ini +++ b/metal/hosts.ini @@ -9,3 +9,6 @@ metal3 ansible_host=192.168.1.113 mac='00-23-24-d1-f5-69' [metal:vars] ansible_user=root + +[etcd] +metal0 diff --git a/metal/playbook.yml b/metal/playbook.yml index 7d00f955..a6ae4047 100644 --- a/metal/playbook.yml +++ b/metal/playbook.yml @@ -14,3 +14,8 @@ gather_facts: no roles: - { role: wake, tag: wake } + +- name: Install etcd for Terraform state + hosts: etcd + roles: + - { role: etcd, tag: etcd } diff --git a/metal/roles/etcd/tasks/main.yml b/metal/roles/etcd/tasks/main.yml new file mode 100644 index 00000000..266a2b75 --- /dev/null +++ b/metal/roles/etcd/tasks/main.yml @@ -0,0 +1,8 @@ +- name: Create etcd container + docker_container: + name: etcd-tfstate + image: quay.io/coreos/etcd + exposed_ports: + - 2379 + volumes: + - default.etcd