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

support multiple puppetdb servers #409

Closed
wants to merge 1 commit into from
Closed

support multiple puppetdb servers #409

wants to merge 1 commit into from

Conversation

h0tw1r3
Copy link
Contributor

@h0tw1r3 h0tw1r3 commented May 8, 2024

migrated from PR #351 originally submitted by @bassonj

per documentation at https://puppet.com/docs/puppetdb/7/puppetdb_connection.html#server_urls

@h0tw1r3
Copy link
Contributor Author

h0tw1r3 commented May 8, 2024

I don't really own this per-say, nor have I tested it. The original PR was abandoned, and I was unable to rebase as the author's repo was migrated into another org.

@h0tw1r3
Copy link
Contributor Author

h0tw1r3 commented May 8, 2024

Seems to address #386 but needs to be finished. Original author is no longer working on it if someone else is interested in picking this up.

@@ -6,7 +6,7 @@
$database_username = $puppetdb::params::database_username,
$read_database_username = $puppetdb::params::read_database_username,
$read_database_host = $puppetdb::params::read_database_host,
$puppetdb_server = $puppetdb::params::puppetdb_server,
Variant[String,Array[String, 1]] $puppetdb_server = $puppetdb::params::puppetdb_server,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think that's the least we should do. would even be better to enforce IP/FQDN, but I don't know out of my head what kind of values are allowed here.

Suggested change
Variant[String,Array[String, 1]] $puppetdb_server = $puppetdb::params::puppetdb_server,
Variant[String[1],Array[String[1], 1]] $puppetdb_server = $puppetdb::params::puppetdb_server,

@h0tw1r3 h0tw1r3 marked this pull request as draft May 23, 2024 10:13
@donoghuc donoghuc closed this Jun 6, 2024
@donoghuc donoghuc deleted the multi_server_urls branch June 6, 2024 14:40
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