-
Notifications
You must be signed in to change notification settings - Fork 36
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
Fixes #37325 - make postgres the container gateway default DB #479
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
Closing to put this work in foreman_proxy. (theforeman/puppet-foreman_proxy#835) |
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.