egeneralov.postgresql
egeneralov.postgresql
Zainstaluj serwer PostgreSQL z NORMALną konfiguracją.
Wymagania
System oparty na Debianie, wspierany przez oficjalne repozytorium.
Zależności
Zmienne Roli
Zobacz defaults/main.yml
dla pełnej listy.
pgdg_version: 9.6
pgdg_users:
- użytkownik: root hasło: root baza danych: root
pgdg_postgresql_conf:
- { "k": "listen_addresses", "v": "'*'" }
- { "k": "max_connections", "v": "1000" }
- { "k": "superuser_reserved_connections", "v": "10" }
- { "k": "huge_pages", "v": "try" }
pgdg_pg_hba_conf:
- { "connection_type": "local", "database": "all", "user": "all", "address": "", "method": "peer" }
- { "connection_type": "host", "database": "all", "user": "all", "address": "127.0.0.1/32", "method": "md5" }
Przykład Playbooka
- hosty: db
zmienne:
pgdg_users:
- użytkownik: root
hasło: root
baza danych: root
pgdg_pg_hba_conf:
- {
"connection_type": "local",
"database": "all",
"user": "all",
"address": "",
"method": "peer"
}
- {
"connection_type": "host",
"database": "all",
"user": "all",
"address": "127.0.0.1/32",
"method": "md5"
}
- {
"connection_type": "host",
"database": "all",
"user": "all",
"address": "192.168.0.0/24",
"method": "md5"
}
role:
- egeneralov.postgresql
Licencja
MIT
Informacje o Autorze
Eduard Generalov eduard@generalov.net
Zainstaluj
ansible-galaxy install egeneralov.postgresql
Licencja
mit
Pobrania
114
Właściciel