Skip to content

Commit d7df079

Browse files
authored
Merge pull request #428 from gclough/cleanup_old_yum_variables
Removed unused variables, as they add to confusion
2 parents 3d735d0 + a4da676 commit d7df079

File tree

1 file changed

+8
-69
lines changed

1 file changed

+8
-69
lines changed

defaults/main.yml

Lines changed: 8 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
# Basic settings
44
postgresql_version: 11
5+
postgresql_version_terse: "{{ postgresql_version | replace('.', '') }}" # Short version of the postgresql_version, used in some path and filenames
56
postgresql_encoding: "UTF-8"
67
postgresql_data_checksums: false
78
postgresql_pwfile: ""
@@ -15,6 +16,10 @@ postgresql_ctype_parts:
1516
- "UTF-8" # Encoding
1617
postgresql_ctype: "{{ postgresql_ctype_parts | join('.') }}"
1718

19+
postgresql_env:
20+
LC_ALL: "{{ postgresql_locale }}"
21+
LC_LCTYPE: "{{ postgresql_locale }}"
22+
1823
postgresql_admin_user: "postgres"
1924
postgresql_default_auth_method: "peer"
2025
postgresql_default_auth_method_hosts: "md5"
@@ -117,10 +122,6 @@ postgresql_unix_socket_directories: # (>= 9.3)
117122
postgresql_unix_socket_group: ""
118123
postgresql_unix_socket_permissions: "0777" # begin with 0 to use octal notation
119124

120-
# Automatic pg_ctl configuration. Specify a list of options containing
121-
# cluster specific options to be passed to pg_ctl(1).
122-
postgresql_pg_ctl_options: []
123-
124125
postgresql_bonjour: off # advertise server via Bonjour
125126
postgresql_bonjour_name: "" # defaults to the computer name
126127

@@ -759,10 +760,9 @@ postgresql_pgtune_type: "Mixed"
759760
# Maximum number of expected connections, if "no", default based on db type
760761
postgresql_pgtune_connections: no
761762

762-
763-
postgresql_env:
764-
LC_ALL: "{{ postgresql_locale }}"
765-
LC_LCTYPE: "{{ postgresql_locale }}"
763+
#------------------------------------------------------------------------------
764+
# INSTALL/REPO
765+
#------------------------------------------------------------------------------
766766

767767
# Install repo, or rely on existing configuration (Satellite, Artifactory, etc.)
768768
postgresql_install_repository: true
@@ -774,67 +774,6 @@ postgresql_apt_repository: "deb http://apt.postgresql.org/pub/repos/apt/ {{ ansi
774774
# Pin-Priority of PGDG repository
775775
postgresql_apt_pin_priority: 500
776776

777-
# Yum settings
778-
postgresql_pgdg_dists:
779-
RedHat: redhat
780-
CentOS: centos
781-
Scientific: sl
782-
SLC: sl
783-
OracleLinux: oraclelinux
784-
Fedora: fedora
785-
786-
postgresql_pgdg_releases:
787-
redhat: {
788-
9.1: 8,
789-
9.2: 9,
790-
9.3: 3,
791-
9.4: 3,
792-
9.5: 3,
793-
9.6: 3,
794-
10: 2,
795-
11: 2,
796-
}
797-
centos: {
798-
9.1: 7,
799-
9.2: 8,
800-
9.3: 3,
801-
9.4: 3,
802-
9.5: 3,
803-
9.6: 3,
804-
10: 2,
805-
11: 2,
806-
}
807-
sl: {
808-
9.1: 8,
809-
9.2: 9,
810-
9.3: 3,
811-
9.4: 3,
812-
9.5: 3,
813-
9.6: 3,
814-
10: 2,
815-
11: 2,
816-
}
817-
oraclelinux: {
818-
9.1: 8,
819-
9.2: 9,
820-
9.3: 3,
821-
9.4: 3,
822-
9.5: 3,
823-
9.6: 3,
824-
10: 2,
825-
11: 2,
826-
}
827-
828-
postgresql_fedora_releases:
829-
fedora: {
830-
9.5: 12,
831-
9.6: 8,
832-
10: 3,
833-
11: 2,
834-
}
835-
836-
postgresql_version_terse: "{{ postgresql_version | replace('.', '') }}"
837-
838777
# YUM repository locations
839778
postgresql_yum_repository_url: "http://yum.postgresql.org"
840779
postgresql_pgdg_repository_url: "https://download.postgresql.org/pub/repos/yum/"

0 commit comments

Comments
 (0)