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

Fixes #19625: Remove server roles in webapp and add support for remote postgres #3751

Conversation

fanf
Copy link
Member

@fanf fanf commented Jul 29, 2021

@fanf
Copy link
Member Author

fanf commented Jul 29, 2021

PR updated with a new commit

def isPostgresqlLocal: Boolean

override def getFilteredTechnique(): Map[NodeId, List[TechniqueName]] = {
if(isPostgresqlLocal) {
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't it be the contrary?

Copy link
Member Author

Choose a reason for hiding this comment

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

no, we filter out technique rudder-service-postgresql when postgres is remot. If it's local, we don't filter out anything

@fanf fanf force-pushed the ust_19625/remove_server_roles_in_webapp_and_add_support_for_remote_postgres branch from c789391 to 6e0e5a9 Compare July 30, 2021 09:49
@Normation-Quality-Assistant
Copy link
Contributor

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit 6e0e5a9 into Normation:master Jul 30, 2021
@@ -450,8 +391,8 @@ class SystemVariableServiceImpl(
val varManagedNodesCertUUID = systemVariableSpecService.get("MANAGED_NODES_CERT_UUID").toVariable(nodesWithCertificate.map(_._1.id.value))

//Reports DB (postgres) DB name and DB user
val varReportsDBname = systemVariableSpecService.get("RUDDER_REPORTS_DB_NAME").toVariable(Seq(reportsDbName))
Copy link
Member

Choose a reason for hiding this comment

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

this was necessary for the .pgpass file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants