mirror of
https://gitea.0xace.cc/ansible-galaxy/patroni.git
synced 2024-11-24 23:56:39 +00:00
fix repos and ssl
This commit is contained in:
parent
b443059313
commit
0c9030717d
@ -2,6 +2,12 @@
|
||||
package_facts:
|
||||
manager: auto
|
||||
|
||||
- name: Install deps packages
|
||||
apt:
|
||||
name: "{{ patroni_deps_packages }}"
|
||||
state: present
|
||||
update_cache: yes
|
||||
|
||||
- name: Set fact about Patroni package
|
||||
set_fact:
|
||||
patroni_installed_package: "{{ ansible_facts.packages[patroni_package_name][0]['name'] }}"
|
||||
|
@ -1,9 +1,3 @@
|
||||
- name: Install deps packages
|
||||
apt:
|
||||
name: "{{ patroni_deps_packages }}"
|
||||
state: present
|
||||
update_cache: yes
|
||||
|
||||
- name: Add gpg keys for patroni
|
||||
ansible.builtin.apt_key:
|
||||
url: "{{ item.url }}"
|
||||
@ -18,3 +12,9 @@
|
||||
update_cache: yes
|
||||
loop: "{{ patroni_apt_repository }}"
|
||||
|
||||
- name: Install deps packages
|
||||
apt:
|
||||
name: "{{ patroni_deps_packages }}"
|
||||
state: present
|
||||
update_cache: yes
|
||||
|
||||
|
@ -1,3 +1,9 @@
|
||||
- name: Install deps packages
|
||||
apt:
|
||||
name: "{{ patroni_deps_packages }}"
|
||||
state: present
|
||||
update_cache: yes
|
||||
|
||||
- name: Install postgresql-common
|
||||
apt:
|
||||
name: postgresql-common
|
||||
|
@ -2,6 +2,12 @@
|
||||
package_facts:
|
||||
manager: auto
|
||||
|
||||
- name: Install deps packages
|
||||
dnf:
|
||||
name: "{{ patroni_deps_packages }}"
|
||||
state: present
|
||||
update_cache: yes
|
||||
|
||||
- name: Set fact about Patroni package
|
||||
set_fact:
|
||||
patroni_installed_package: "{{ ansible_facts.packages[patroni_package_name][0]['name'] }}"
|
||||
|
@ -8,3 +8,10 @@
|
||||
name: "{{ patroni_repo_package }}"
|
||||
state: present
|
||||
disable_gpg_check: yes
|
||||
|
||||
- name: Install deps packages
|
||||
dnf:
|
||||
name: "{{ patroni_deps_packages }}"
|
||||
state: present
|
||||
update_cache: yes
|
||||
|
||||
|
@ -3,6 +3,12 @@
|
||||
register: disable_postgresql_module
|
||||
changed_when: "'Nothing to do' not in disable_postgresql_module.stdout"
|
||||
|
||||
- name: Install deps packages
|
||||
dnf:
|
||||
name: "{{ patroni_deps_packages }}"
|
||||
state: present
|
||||
update_cache: yes
|
||||
|
||||
- name: Gather packages
|
||||
package_facts:
|
||||
manager: auto
|
||||
|
@ -115,9 +115,11 @@ bootstrap:
|
||||
{% for host in groups.patroni %}
|
||||
- host replication {{ patroni_replication_username }} {{ hostvars[host]['ansible_host'] }}/32 {{ patroni_postgresql_password_encryption_algorithm }}
|
||||
{% endfor %}
|
||||
- host all all 127.0.0.1/32 {{ patroni_postgresql_password_encryption_algorithm }}
|
||||
- hostssl all all 127.0.0.1/32 {{ patroni_postgresql_password_encryption_algorithm }}
|
||||
- hostssl all all 0.0.0.0/0 scram-sha-256
|
||||
- host replication replicator 0.0.0.0/0 scram-sha-256
|
||||
- host all all 0.0.0.0/0 {{ patroni_postgresql_password_encryption_algorithm }}
|
||||
- hostssl all all 0.0.0.0/0 {{ patroni_postgresql_password_encryption_algorithm }}
|
||||
- host replication replicator 0.0.0.0/0 {{ patroni_postgresql_password_encryption_algorithm }}
|
||||
|
||||
|
||||
postgresql:
|
||||
|
@ -25,10 +25,9 @@ patroni_postgresql_package_name: "postgresql-{{ patroni_postgresql_major_version
|
||||
patroni_postgresql_package: "{{ patroni_postgresql_package_name }}={{ patroni_postgresql_version }}-{{ patroni_postgresql_version_build }}"
|
||||
patroni_postgresql_version_build: "1.pgdg110+1"
|
||||
patroni_postgresql_cluster_name: "main"
|
||||
patroni_postgresql_data_dir: "/var/lib/postgresql/{{ patroni_postgresql_major_version }}/{{ patroni_postgresql_cluster_name }}"
|
||||
patroni_postgresql_data_dir: "{{ patroni_postgresql_home_dir }}/{{ patroni_postgresql_major_version }}/{{ patroni_postgresql_cluster_name }}"
|
||||
patroni_postgresql_wal_dir: ""
|
||||
patroni_postgresql_conf_dir: "/etc/postgresql/{{ patroni_postgresql_major_version }}/{{ patroni_postgresql_cluster_name }}"
|
||||
patroni_postgresql_bin_dir: "/usr/lib/postgresql/{{ patroni_postgresql_major_version }}/bin"
|
||||
patroni_postgresql_log_dir: "/var/log/postgresql"
|
||||
patroni_postgresql_unix_socket_dir: "/var/run/postgresql"
|
||||
patroni_postgresql_home_dir: "/var/lib/postgresql"
|
||||
|
@ -25,7 +25,7 @@ patroni_postgresql_package_name: "postgresql-{{ patroni_postgresql_major_version
|
||||
patroni_postgresql_package: "{{ patroni_postgresql_package_name }}={{ patroni_postgresql_version }}-{{ patroni_postgresql_version_build }}"
|
||||
patroni_postgresql_version_build: "1.pgdg20.04+1"
|
||||
patroni_postgresql_cluster_name: "main"
|
||||
patroni_postgresql_data_dir: "/var/lib/postgresql/{{ patroni_postgresql_major_version }}/{{ patroni_postgresql_cluster_name }}"
|
||||
patroni_postgresql_data_dir: "{{ patroni_postgresql_home_dir }}/{{ patroni_postgresql_major_version }}/{{ patroni_postgresql_cluster_name }}"
|
||||
patroni_postgresql_wal_dir: ""
|
||||
patroni_postgresql_conf_dir: "/etc/postgresql/{{ patroni_postgresql_major_version }}/{{ patroni_postgresql_cluster_name }}"
|
||||
patroni_postgresql_bin_dir: "/usr/lib/postgresql/{{ patroni_postgresql_major_version }}/bin"
|
||||
|
@ -25,7 +25,7 @@ patroni_postgresql_package_name: "postgresql-{{ patroni_postgresql_major_version
|
||||
patroni_postgresql_package: "{{ patroni_postgresql_package_name }}={{ patroni_postgresql_version }}-{{ patroni_postgresql_version_build }}"
|
||||
patroni_postgresql_version_build: "1.pgdg22.04+1"
|
||||
patroni_postgresql_cluster_name: "main"
|
||||
patroni_postgresql_data_dir: "/var/lib/postgresql/{{ patroni_postgresql_major_version }}/{{ patroni_postgresql_cluster_name }}"
|
||||
patroni_postgresql_data_dir: "{{ patroni_postgresql_home_dir }}/{{ patroni_postgresql_major_version }}/{{ patroni_postgresql_cluster_name }}"
|
||||
patroni_postgresql_wal_dir: ""
|
||||
patroni_postgresql_conf_dir: "/etc/postgresql/{{ patroni_postgresql_major_version }}/{{ patroni_postgresql_cluster_name }}"
|
||||
patroni_postgresql_bin_dir: "/usr/lib/postgresql/{{ patroni_postgresql_major_version }}/bin"
|
||||
|
Loading…
Reference in New Issue
Block a user