forked from ANXS/postgresql
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 971fc3c Author: Greg Clough <[email protected]> Date: Tue Mar 27 12:01:10 2018 +0100 Rebased from master commit 5c6a5f0 Merge: 871edb6 c657d9d Author: Greg Clough <[email protected]> Date: Tue Mar 27 12:00:08 2018 +0100 Merge branch 'add_missing_conf_parameters' of https://github.com/gclough/postgresql into add_missing_conf_parameters commit 871edb6 Author: Greg Clough <[email protected]> Date: Tue Mar 27 10:18:54 2018 +0100 Changed variables to match the "double-quoted" string standard, as introduced in \ANXS#319 commit 2468343 Author: Greg Clough <[email protected]> Date: Mon Mar 26 16:53:31 2018 +0100 Updated to use the standard "{{ var }}" format for new variables, rather than "{{var}}" commit 68359af Author: Greg Clough <[email protected]> Date: Sat Mar 24 15:30:30 2018 +0000 Crosscheck, and fix all missing parameters, defaults, etc. commit c657d9d Author: Greg Clough <[email protected]> Date: Tue Mar 27 10:18:54 2018 +0100 Changed variables to match the "double-quoted" string standard, as introduced in \ANXS#319 commit d009b72 Merge: 28b0e3a 28a6e9c Author: Greg Clough <[email protected]> Date: Tue Mar 27 10:13:16 2018 +0100 Merge branch 'master' of https://github.com/ANXS/postgresql into add_missing_conf_parameters Conflicts: defaults/main.yml commit 28b0e3a Author: Greg Clough <[email protected]> Date: Mon Mar 26 16:53:31 2018 +0100 Updated to use the standard "{{ var }}" format for new variables, rather than "{{var}}" commit 28a6e9c Merge: a1ab3cb 67e0fae Author: Sergei Antipov <[email protected]> Date: Mon Mar 26 11:52:03 2018 -0400 Merge pull request ANXS#319 from gclough/quote_all_enum_parameters Quote all string variables, and add spaces around variables "{{ var }}" commit 67e0fae Author: Greg Clough <[email protected]> Date: Mon Mar 26 12:23:19 2018 +0100 Octal numbers need to be quoted, otherwise they get converted to Decimal commit 42074a9 Author: Greg Clough <[email protected]> Date: Mon Mar 26 12:20:25 2018 +0100 Crosschecked, and found some that I missed. commit cb43081 Author: Greg Clough <[email protected]> Date: Mon Mar 26 11:48:01 2018 +0100 Quote all string variables, and add spaces around variables "{{ var }}" instead of "{{var}"" commit b4f67e3 Author: Greg Clough <[email protected]> Date: Sat Mar 24 15:30:30 2018 +0000 Crosscheck, and fix all missing parameters, defaults, etc. commit a1ab3cb Merge: 3861bc2 eabd1a0 Author: Sergei Antipov <[email protected]> Date: Fri Mar 23 12:46:42 2018 -0400 Merge pull request ANXS#313 from gclough/fix_galaxy_centos_name Fixed CenOS/RedHat naming... should be EL commit eabd1a0 Author: Greg Clough <[email protected]> Date: Fri Mar 23 15:27:39 2018 +0000 Fixed CenOS/RedHat naming... should be EL. Also added tags to help people find it on Galaxy commit 3861bc2 Merge: 73c77b4 f584dbb Author: Sergei Antipov <[email protected]> Date: Fri Mar 23 11:14:24 2018 -0400 Merge pull request ANXS#312 from gclough/update_meta_for_centos_redhat Added meta data for CentOS and RedHat, plus added tags commit f584dbb Author: Greg Clough <[email protected]> Date: Fri Mar 23 14:35:52 2018 +0000 Added meta data for CentOS and RedHat, plus added tags to help with searches commit 73c77b4 Merge: 7346fdb a3f45f9 Author: Sergei Antipov <[email protected]> Date: Mon Mar 19 19:23:31 2018 -0400 Merge pull request ANXS#307 from sebalix/use_postgresql_ext_for_extensions Use postgresql ext for extensions commit a3f45f9 Author: Greg Clough <[email protected]> Date: Thu Mar 15 18:04:13 2018 +0000 Added extra tests for travis to create extensions in "foobar" database commit e918dbe Author: Greg Clough <[email protected]> Date: Sat Mar 10 11:19:04 2018 +0000 Convert from using "psql" to using the Ansible module "postgresql_ext", which I suspect is a more reliable method.
- Loading branch information
Greg Clough
committed
Mar 27, 2018
1 parent
7346fdb
commit 4a9cd1a
Showing
12 changed files
with
213 additions
and
94 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/bin/bash - | ||
|
||
# | ||
# Identify a unique filename | ||
# | ||
TEMP_FILE=/tmp/`basename $0`.$$ | ||
|
||
# | ||
# Loop through all postgresql.conf.orig files, and compare them to the j2 files | ||
# | ||
for FILE in postgresql.conf-[0-9]*\.orig; do | ||
# | ||
# Extract the base filename, removing ".orig" | ||
# | ||
BASE_FILE="`echo $FILE | sed s/\.orig\$//`" | ||
|
||
# | ||
# If we crash, then cleanup | ||
# | ||
trap 'rm -f ${TEMP_FILE}.orig ${TEMP_FILE}.j2 ${TEMP_FILE}.defaults' 0 | ||
|
||
# | ||
# Extract a unique, sorted list of the parameter names | ||
# | ||
cat ${BASE_FILE}.orig | sed s/\#// | grep ^[a-z] | cut -f1 -d' ' | sort | uniq > ${TEMP_FILE}.orig | ||
cat ${BASE_FILE}.j2 | sed s/\#// | grep ^[a-z] | cut -f1 -d' ' | sort | uniq > ${TEMP_FILE}.j2 | ||
cat ../defaults/main.yml | sed s/\#// | grep ^[a-z] | cut -f1 -d':' | sed s/^postgresql_// | sort | uniq > ${TEMP_FILE}.defaults | ||
|
||
# | ||
# Output a comparision | ||
# | ||
echo ================================================================================ | ||
echo ${BASE_FILE}.orig ${BASE_FILE}.j2 | ||
diff ${TEMP_FILE}.orig ${TEMP_FILE}.j2 && echo All parameters exist in both files | ||
echo -------------------------------------------------------------------------------- | ||
echo ${BASE_FILE}.defaults ${BASE_FILE}.j2 | ||
cat ${TEMP_FILE}.j2 | while read PARAM; do | ||
grep ^postgresql_${PARAM}: ../defaults/main.yml > /dev/null 2>&1 || echo "Missing $PARAM in ../defaults/main.yml" | ||
done | ||
echo ================================================================================ | ||
echo | ||
|
||
# | ||
# Cleanup | ||
# | ||
rm -f ${TEMP_FILE}.orig ${TEMP_FILE}.j2 ${TEMP_FILE}.defaults | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters