From 86eaf941909078c94b96249018a1530a07c79825 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Fri, 17 Mar 2023 09:18:41 +0100 Subject: [PATCH] add 10.0.0.0/8 to allowed postgresql hosts --- README.md | 2 +- configure/atlas.yml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 73580b6..9153e65 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Atlas -Terraform and Ansible scripts to configure our KVM hypervisor Debian server. +Atlas is our first Debian server running a KVM hypervisor. To initialize Terraform: 1. Create pg.tfbackend including `conn_str = "postgres://terraform@atlas.lan/terraform_state"` diff --git a/configure/atlas.yml b/configure/atlas.yml index 907fc90..e5202a2 100644 --- a/configure/atlas.yml +++ b/configure/atlas.yml @@ -71,11 +71,12 @@ databases: all method: trust users: terraform - address: 192.168.0.0/16 + address: "{{ item }}" create: true become: true become_user: postgres notify: restart postgres + with_items: ["192.168.0.0/16", "10.0.0.0/8"] - name: Open postgres port ini_file: path: /etc/postgresql/15/main/postgresql.conf