Skip to content

Commit

Permalink
Merge pull request #269 from mrsrvman/master
Browse files Browse the repository at this point in the history
 Ability to install packages for patroni as a list
  • Loading branch information
vitabaks committed Mar 3, 2023
2 parents f3b8c69 + 09f411f commit 8294304
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/patroni/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,14 @@
# Debian
- name: Install patroni package
package:
name: patroni
name: "{{ patroni_packages| default('patroni')}}"
state: present
when: ansible_os_family == "Debian" and patroni_deb_package_repo | length < 1

# RedHat
- name: Install patroni package
package:
name: patroni
name: "{{ patroni_packages| default('patroni')}}"
state: present
when: ansible_os_family == "RedHat" and patroni_rpm_package_repo | length < 1

Expand Down
3 changes: 3 additions & 0 deletions vars/Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ installation_method: "repo" # (default)"repo" or "file"
# Patroni package will be installed from the pip (by default).
# You also have the option of choosing an patroni installation method using the deb package.
patroni_installation_method: "pip" # (default)"pip" or "deb"
# if patroni_installation_method: "deb"
patroni_packages:
- patroni

# (if patroni_installation_type: "pip")
# Packages from your repository will be used to install instead of the pip repository.
Expand Down
5 changes: 5 additions & 0 deletions vars/RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ system_packages:
- python3-psycopg2
- python3-setuptools
- python3-pip
- python3-urllib3
- less
- sudo
- vim
Expand Down Expand Up @@ -112,6 +113,10 @@ installation_method: "repo" # (default)"repo" or "file"
# Patroni package will be installed from the pip repository (by default).
# You also have the option of choosing an patroni installation method using the rpm package.
patroni_installation_method: "pip" # (default)"pip" or "rpm"
# if patroni_installation_method: "rpm"
patroni_packages:
- patroni
- patroni-etcd

# (if patroni_installation_type: "pip")
# Packages from your repository will be used to install instead of the pip repository.
Expand Down

0 comments on commit 8294304

Please sign in to comment.