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 #37325 - make postgres the container gateway default DB #479

Conversation

ianballou
Copy link
Contributor

Draft PR to instantiate the postgres database for the container gateway. The main PR is here: theforeman/puppet-foreman_proxy#835

I'm not totally sure if foreman_proxy_content is the proper spot to create the DB, but it seemed better than doing it in foreman_proxy and adding a postgres library requirement there.

I'm looking for general feedback on what things I might be missing between the two PRs since I don't work on Puppet modules often.

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

As mentioned in theforeman/puppet-foreman_proxy#835 (review), I'd prefer to manage the DB there.

I do wonder about external DB support. AFAIK we don't currently support that on content proxies, but if we would then we'd need to account for it.

@@ -280,6 +280,16 @@
pulp_endpoint => "https://${servername}",
}
}
include postgresql::client
include postgresql::server
include postgresql::server::contrib
Copy link
Member

Choose a reason for hiding this comment

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

Do you need extensions from contrib?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Perhaps not, need to check.

@@ -280,6 +280,16 @@
pulp_endpoint => "https://${servername}",
}
}
include postgresql::client
Copy link
Member

Choose a reason for hiding this comment

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

Normally client is not needed.

@ianballou
Copy link
Contributor Author

Closing to put this work in foreman_proxy. (theforeman/puppet-foreman_proxy#835)

@ianballou ianballou closed this Apr 9, 2024
@ianballou ianballou deleted the 37325-container-gateway-postgres branch April 11, 2024 21:10
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.

2 participants