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

add optional service meta hash #466

Merged
merged 3 commits into from
Jan 28, 2019
Merged

add optional service meta hash #466

merged 3 commits into from
Jan 28, 2019

Conversation

jardleex
Copy link
Contributor

Hi,

as requested in #436 and similar to #441 this is an up-to-date PR based on latest master of solarkennedy and the work of sc0rp10.
It adds meta hash the a service definition. The hash is optional.

Note: I've not clue about the spec files. Just took over the changes initially made. Will need external input if something is broken there.

Best regards

jardleex

@bastelfreak bastelfreak changed the title added optional service meta hash add optional service meta hash Jan 28, 2019
Hash $service_config_hash = {},
$tags = [],
$token = undef,
Hash[String, String] $meta = {},
Copy link
Member

Choose a reason for hiding this comment

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

Can you please enforce the minimal string lengt:

Suggested change
Hash[String, String] $meta = {},
Hash[String[1], String[1]] $meta = {},

Please also align all the = chars in the parameter section.

@@ -36,6 +36,9 @@
# [*token*]
# ACL token for interacting with the catalog (must be 'management' type)
#
# [*meta*]
Copy link
Member

Choose a reason for hiding this comment

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

can you also mention this parameter in the README.md?

@bastelfreak bastelfreak added enhancement New feature or request needs-work not ready to merge just yet labels Jan 28, 2019
@bastelfreak
Copy link
Member

we need to wait until puppetlabs/beaker-puppet#102 got merged and released. That will fix the beaker jobs.

@jardleex
Copy link
Contributor Author

Length enforcement is in.
Getting familiar with the readme.md to find a proper place for the block to insert.

@bastelfreak bastelfreak removed the needs-work not ready to merge just yet label Jan 28, 2019
@bastelfreak
Copy link
Member

thanks!

@bastelfreak bastelfreak merged commit 51d2fbe into voxpupuli:master Jan 28, 2019
@jardleex jardleex deleted the add_service_meta branch January 29, 2019 07:22
@jardleex
Copy link
Contributor Author

jardleex commented Jan 29, 2019

Thank you for your quick response and help!
Guess #436 and #441 can then get closed too.

Can you say when a new version/tag of this get's released (and pushed to Puppet Forge)?

spuder pushed a commit to spuder/puppet-consul that referenced this pull request Feb 25, 2020
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.

2 participants