Skip to content

Commit bc91b22

Browse files
committed
PMM-7: Change pmm client setup
1 parent 434f3ae commit bc91b22

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pmm_psmdb_diffauth_setup/test-auth.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,14 @@ cat > "$PLAYBOOK_FILE" <<EOF
5252
- include_tasks: ../pmm_qa/tasks/install_pmm_client.yml
5353
EOF
5454

55+
if [ -z "${MYVAR+x}" ]; then
56+
PMM_SERVER_IP="pmm-server"
57+
fi
58+
5559
echo "PMM Server IP is: $PMM_SERVER_IP"
5660
echo "PMM Client version is: $PMM_CLIENT_VERSION"
5761
echo "Admin Password is: $ADMIN_PASSWORD"
58-
ansible_out=$(ansible-playbook install_pmm_client.yml --connection=local --inventory 127.0.0.1, --limit 127.0.0.1 -e "container_name=psmdb-server pmm_server_ip=$PMM_SERVER_IP client_version=$PMM_CLIENT_VERSION admin_password=$ADMIN_PASSWORD" 2>&1)
62+
ansible_out=$(ansible-playbook install_pmm_client.yml -vvv --connection=local --inventory 127.0.0.1, --limit 127.0.0.1 -e "container_name=psmdb-server pmm_server_ip=$PMM_SERVER_IP client_version=$PMM_CLIENT_VERSION admin_password=$ADMIN_PASSWORD" 2>&1)
5963

6064
if [ $? -ne 0 ]; then
6165
echo "Ansible failed for: psmdb-server"

0 commit comments

Comments
 (0)