Skip to content

Conversation

gclough
Copy link
Collaborator

@gclough gclough commented Apr 15, 2019

Removed unused default variables (as in not used ANYWHERE). Checked with:

#!/bin/bash -

cat defaults/main.yml | grep ^[a-z] | cut -f1 -d: | while read VAR; do
  echo $VAR
  COUNT=`grep -r $VAR * | wc -l`
  echo $COUNT
  if [ $COUNT -le 1 ]; then
    echo ERROR;
  fi;
  echo =====================================================
done | less

I've also moved some of them to a more logical location.


# Basic settings
postgresql_version: 11
# Short version of the postgresql_version, used in some path and filenames
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved postgresql_version_terse next to the postgresql_version, rather than in a random place down the file.

- "UTF-8" # Encoding
postgresql_ctype: "{{ postgresql_ctype_parts | join('.') }}"

postgresql_env:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved postgresql_env close to the other environment variables, rather than in some random place further down in the file.

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
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Completely unused, so removed.

postgresql_pgtune_connections: no


postgresql_env:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved up to a better spot.

postgresql_env:
LC_ALL: "{{ postgresql_locale }}"
LC_LCTYPE: "{{ postgresql_locale }}"
#------------------------------------------------------------------------------
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New block header

# Pin-Priority of PGDG repository
postgresql_apt_pin_priority: 500

# Yum settings
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Completely unused... so we've been maintaining this for nothing.

11: 2,
}

postgresql_version_terse: "{{ postgresql_version | replace('.', '') }}"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved up to a more logical location

@gclough gclough force-pushed the cleanup_old_yum_variables branch from 67051d5 to a4da676 Compare April 15, 2019 10:46
@gclough gclough merged commit d7df079 into ANXS:master Apr 15, 2019
@gclough gclough deleted the cleanup_old_yum_variables branch April 15, 2019 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant