summaryrefslogtreecommitdiffstats
path: root/controller/parse_credsfile
diff options
context:
space:
mode:
authorPavel Raiskup <praiskup@redhat.com>2014-10-23 15:13:36 +0200
committerPavel Raiskup <praiskup@redhat.com>2014-10-23 15:15:18 +0200
commit83edd3a996c506b6a1988d0c68214e9a849397d8 (patch)
tree480d540ba768ccbdb4d730c3a422164c846058f5 /controller/parse_credsfile
parent3d7b436102772e5e9e146e45e8d52210ce7498b5 (diff)
downloadpostgresql-setup-tests-83edd3a996c506b6a1988d0c68214e9a849397d8.tar.gz
postgresql-setup-tests-83edd3a996c506b6a1988d0c68214e9a849397d8.tar.xz
postgresql-setup-tests-83edd3a996c506b6a1988d0c68214e9a849397d8.zip
controller: autoconfiscate
First part of converting controller to autoconf/automake solution. * .gitignore: New gitignore; autotools ignores. * Makefile.am: New file. * get_machine: Renamed to template bin/dtf-get-machine.in. * bin/dtf-get-machine.in: New template based on get_machine. * run_remote: Renamed to template bin/dtf-run-remote.in. * bin/dtf-run-remote.in: New binary template from run_remote. * build: New bootstrap like helper script (git-only). * configure.ac: New file. * etc/dtf.sh.in: Likewise. * ansible_helpers/wait-for-ssh: Renamed to libexec/dtf-wait-for-ssh. * share/dtf-controller/parse_credsfile: Reworked script for parsing OS credentials. * parse_credsfile: Moved to share/dtf-controller. * libexec/dtf-wait-for-ssh: Renamed from wait-for-ssh. * ansible/*: Moved into share/dtf-controller/ansible/*. * share/dtf-controller/ansible/vars/generated-vars.yml.in: New template file exporting configure-time variables into playbooks.
Diffstat (limited to 'controller/parse_credsfile')
-rw-r--r--controller/parse_credsfile16
1 files changed, 0 insertions, 16 deletions
diff --git a/controller/parse_credsfile b/controller/parse_credsfile
deleted file mode 100644
index 4cf8e58..0000000
--- a/controller/parse_credsfile
+++ /dev/null
@@ -1,16 +0,0 @@
-___os_confdir=$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)
-
-credsfile="$___os_confdir/private/os/$1.yml"
-
-while read line; do
- if [[ "$line" =~ ^([a-zA-Z0-9_]*):\ ?(.*)$ ]]; then
- key="${BASH_REMATCH[1]}"
- if test "$key" = os_nova_password; then
- key=os_password
- fi
- eval set ${BASH_REMATCH[2]}
- eval export "${key^^}"="\"$@\""
- fi
-done < "$credsfile"
-
-# vi: syntax=sh