Skip to content

Commit

Permalink
Merge pull request #428 from gclough/cleanup_old_yum_variables
Browse files Browse the repository at this point in the history
Removed unused variables, as they add to confusion
  • Loading branch information
gclough authored Apr 15, 2019
2 parents 3d735d0 + a4da676 commit d7df079
Showing 1 changed file with 8 additions and 69 deletions.
77 changes: 8 additions & 69 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

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

postgresql_env:
LC_ALL: "{{ postgresql_locale }}"
LC_LCTYPE: "{{ postgresql_locale }}"

postgresql_admin_user: "postgres"
postgresql_default_auth_method: "peer"
postgresql_default_auth_method_hosts: "md5"
Expand Down Expand Up @@ -117,10 +122,6 @@ postgresql_unix_socket_directories: # (>= 9.3)
postgresql_unix_socket_group: ""
postgresql_unix_socket_permissions: "0777" # begin with 0 to use octal notation

# Automatic pg_ctl configuration. Specify a list of options containing
# cluster specific options to be passed to pg_ctl(1).
postgresql_pg_ctl_options: []

postgresql_bonjour: off # advertise server via Bonjour
postgresql_bonjour_name: "" # defaults to the computer name

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


postgresql_env:
LC_ALL: "{{ postgresql_locale }}"
LC_LCTYPE: "{{ postgresql_locale }}"
#------------------------------------------------------------------------------
# INSTALL/REPO
#------------------------------------------------------------------------------

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

# Yum settings
postgresql_pgdg_dists:
RedHat: redhat
CentOS: centos
Scientific: sl
SLC: sl
OracleLinux: oraclelinux
Fedora: fedora

postgresql_pgdg_releases:
redhat: {
9.1: 8,
9.2: 9,
9.3: 3,
9.4: 3,
9.5: 3,
9.6: 3,
10: 2,
11: 2,
}
centos: {
9.1: 7,
9.2: 8,
9.3: 3,
9.4: 3,
9.5: 3,
9.6: 3,
10: 2,
11: 2,
}
sl: {
9.1: 8,
9.2: 9,
9.3: 3,
9.4: 3,
9.5: 3,
9.6: 3,
10: 2,
11: 2,
}
oraclelinux: {
9.1: 8,
9.2: 9,
9.3: 3,
9.4: 3,
9.5: 3,
9.6: 3,
10: 2,
11: 2,
}

postgresql_fedora_releases:
fedora: {
9.5: 12,
9.6: 8,
10: 3,
11: 2,
}

postgresql_version_terse: "{{ postgresql_version | replace('.', '') }}"

# YUM repository locations
postgresql_yum_repository_url: "http://yum.postgresql.org"
postgresql_pgdg_repository_url: "https://download.postgresql.org/pub/repos/yum/"
Expand Down

0 comments on commit d7df079

Please sign in to comment.