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

Adding datacenters property for Consul policies #590

Merged
merged 2 commits into from
Apr 18, 2022

Conversation

jonesbrennan
Copy link
Contributor

I am using this puppet module with Consul version 1.11.4. On this version of Consul, maybe previous versions as well, there is a datacenters property for acl policies. I wanted to be able to set that when creating and updating policies. I have added a datacenters property to the consul_policy type and provider in this request.

@@ -3,6 +3,7 @@
id => Optional[String[1]],
ensure => Optional[Enum['present', 'absent']],
description => Optional[String[0]],
datacenters => Optional[Array[String]],
Copy link
Member

Choose a reason for hiding this comment

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

I think empty string do not make any sense, so we can prohibit it:

Suggested change
datacenters => Optional[Array[String]],
datacenters => Optional[Array[String[1]]],

@jonesbrennan
Copy link
Contributor Author

I've updated the test cases to account for the new datacenters parameter and ran the tests locally to ensure they pass.

@solarkennedy
Copy link
Contributor

Thanks!

1 similar comment
@solarkennedy
Copy link
Contributor

Thanks!

@solarkennedy solarkennedy merged commit 836b272 into voxpupuli:master Apr 18, 2022
@bastelfreak bastelfreak added the enhancement New feature or request label Apr 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants