add 10.0.0.0/8 to allowed postgresql hosts
This commit is contained in:
parent
f3e0d09774
commit
86eaf94190
2 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
# Atlas
|
# 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:
|
To initialize Terraform:
|
||||||
1. Create pg.tfbackend including `conn_str = "postgres://terraform@atlas.lan/terraform_state"`
|
1. Create pg.tfbackend including `conn_str = "postgres://terraform@atlas.lan/terraform_state"`
|
||||||
|
|
|
@ -71,11 +71,12 @@
|
||||||
databases: all
|
databases: all
|
||||||
method: trust
|
method: trust
|
||||||
users: terraform
|
users: terraform
|
||||||
address: 192.168.0.0/16
|
address: "{{ item }}"
|
||||||
create: true
|
create: true
|
||||||
become: true
|
become: true
|
||||||
become_user: postgres
|
become_user: postgres
|
||||||
notify: restart postgres
|
notify: restart postgres
|
||||||
|
with_items: ["192.168.0.0/16", "10.0.0.0/8"]
|
||||||
- name: Open postgres port
|
- name: Open postgres port
|
||||||
ini_file:
|
ini_file:
|
||||||
path: /etc/postgresql/15/main/postgresql.conf
|
path: /etc/postgresql/15/main/postgresql.conf
|
||||||
|
|
Reference in a new issue