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

Refactor database configuration and make the main API typed #352

Merged
merged 6 commits into from
Apr 13, 2021

Conversation

oranenj
Copy link
Contributor

@oranenj oranenj commented Apr 13, 2021

Refactors DB configuration to use a single template.

Changes PostgreSQL defaults a bit, but I'm pretty sure the default was ineffective anyway, so this is half of an API break...

@oranenj
Copy link
Contributor Author

oranenj commented Apr 13, 2021

Squashed and reworded a bit

@oranenj oranenj changed the title Use a common EPP template for dbconfig Remove $jira::use_connection_poolling and use a common template for dbconfig.xml Apr 13, 2021
@oranenj oranenj changed the title Remove $jira::use_connection_poolling and use a common template for dbconfig.xml Remove $jira::use_connection_pooling and use a common template for dbconfig.xml Apr 13, 2021
This removes the use_connection_pooling parameter since for most
databases, it does nothing useful.

It also sets most parameters to "undef" and omits them from the
configuration if the user doesn't override them. The previous module
defaults mostly match JIRA's built-in ones anyway.
@oranenj
Copy link
Contributor Author

oranenj commented Apr 13, 2021

Needs another review, the changes are a bit more drastic now.

Basically, set defaults for ~everything to undef and omit them from dbconfig.xml unless specified by the user.

Also removes pool-size, I don't think it does anything, since it's not documented by Atlassian.

manifests/init.pp Outdated Show resolved Hide resolved
@oranenj oranenj changed the title Remove $jira::use_connection_pooling and use a common template for dbconfig.xml Refactor database configuration API Apr 13, 2021
@oranenj oranenj changed the title Refactor database configuration API Refactor database configuration and make the main API typed Apr 13, 2021
@oranenj
Copy link
Contributor Author

oranenj commented Apr 13, 2021

I've also tested this on the Jira instance I have available and it doesn't break anything obvious, so I'll squash-merge.

@oranenj oranenj merged commit ec85b18 into voxpupuli:master Apr 13, 2021
@oranenj oranenj deleted the refactor-dbconfig branch April 13, 2021 16:19
cegeka-jenkins pushed a commit to cegeka/puppet-jira that referenced this pull request Oct 13, 2021
…i#352)

Unify dbconfig.xml across databases and use  JIRA's built-in defaults when not 
overridden by user

This removes the use_connection_pooling parameter since for most
databases, it does nothing useful. The poolsize parameter is also deprecated, and
is just an alias for pool_max_size now

It also sets  the default values for most parameters to "undef" and omits them from
the configuration if the user doesn't override them. The previous module
defaults mostly match JIRA's built-in ones anyway.

While here, add types to the main API; some things which accepted integer-looking
strings previously will now require actual integers, but otherwise nothing changes.
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.

3 participants