Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix psql command #171

Merged
merged 1 commit into from
Aug 1, 2023
Merged

fix psql command #171

merged 1 commit into from
Aug 1, 2023

Conversation

Alpha041087
Copy link
Contributor

The generated connection string was not working without quotes.

fatal: [node-01.icinga.monitoring.test.company.com]: FAILED! => {"changed": true, "cmd": "PGPASSWORD=\"VerySecret\" psql host=postgres-01.icinga.monitoring.test.company.com port=5432 user=icinga dbname=icinga     -w -f /usr/share/icinga2-ido-pgsql/schema/pgsql.sql\n", "delta": "0:00:00.032079", "end": "2023-07-26 14:04:01.266753", "msg": "non-zero return code", "rc": 2, "start": "2023-07-26 14:04:01.234674", "stderr": "psql: warning: extra command-line argument \"user=icinga\" ignored\npsql: warning: extra command-line argument \"dbname=icinga\" ignored\npsql: error: connection to server at \"postgres-01.icinga.monitoring.test.company.com\" (10.202.144.71), port 5432 failed: FATAL:  no pg_hba.conf entry for host \"10.202.144.70\", user \"port=5432\", database \"port=5432\", SSL encryption\nconnection to server at \"postgres-01.icinga.monitoring.test.company.com\" (10.202.144.71), port 5432 failed: FATAL:  no pg_hba.conf entry for host \"10.202.144.70\", user \"port=5432\", database \"port=5432\", no encryption", "stderr_lines": ["psql: warning: extra command-line argument \"user=icinga\" ignored", "psql: warning: extra command-line argument \"dbname=icinga\" ignored", "psql: error: connection to server at \"postgres-01.icinga.monitoring.test.company.com\" (10.202.144.71), port 5432 failed: FATAL:  no pg_hba.conf entry for host \"10.202.144.70\", user \"port=5432\", database \"port=5432\", SSL encryption", "connection to server at \"postgres-01.icinga.monitoring.test.company.com\" (10.202.144.71), port 5432 failed: FATAL:  no pg_hba.conf entry for host \"10.202.144.70\", user \"port=5432\", database \"port=5432\", no encryption"], "stdout": "", "stdout_lines": []}

@cla-bot
Copy link

cla-bot bot commented Jul 26, 2023

Thank you for your pull request. Before we can look at it, you'll need to sign a Contributor License Agreement (CLA).

Please follow instructions at https://icinga.com/company/contributor-agreement to sign the CLA.

After that, please reply here with a comment and we'll verify.

Contributors that have not signed yet: @Alpha041087

  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Please contact us if you think this is the case.

  • If you signed the CLA as a corporation, your GitHub username may not have been submitted to us. Please reach out to the responsible person in your organization.

@Alpha041087
Copy link
Contributor Author

Signed

@mkayontour
Copy link
Member

@cla-bot check

@cla-bot
Copy link

cla-bot bot commented Jul 26, 2023

Thank you for your pull request. Before we can look at it, you'll need to sign a Contributor License Agreement (CLA).

Please follow instructions at https://icinga.com/company/contributor-agreement to sign the CLA.

After that, please reply here with a comment and we'll verify.

Contributors that have not signed yet: @Alpha041087

  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Please contact us if you think this is the case.

  • If you signed the CLA as a corporation, your GitHub username may not have been submitted to us. Please reach out to the responsible person in your organization.

@mkayontour
Copy link
Member

Hello, thanks for the PR. We'll review it and give feedback.

@bobapple
Copy link
Member

@cla-bot check

@cla-bot cla-bot bot added the cla/signed label Jul 27, 2023
Copy link
Member

@mkayontour mkayontour left a comment

Choose a reason for hiding this comment

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

Changes look good, gave them a couple tests.

@martialblog
Copy link
Member

@mkayontour haven't gotten around to testing this. But if you say it's go, then let's go.

@mkayontour mkayontour merged commit ca9c8a0 into Icinga:main Aug 1, 2023
@Alpha041087 Alpha041087 deleted the patch-1 branch August 3, 2023 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants