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 service_config_hash to customize services #460

Merged
merged 3 commits into from Jan 14, 2019

Conversation

dan-wittenberg
Copy link
Contributor

This will allow you to add new features, such as the new connect options.

@@ -41,6 +65,7 @@
$id = $title,
$port = undef,
$service_name = $title,
$service_config_hash = [],
Copy link
Member

Choose a reason for hiding this comment

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

Could you add a datatype to the parameter? Also in your example it's a hash, here it is an array.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Gotcha, wasn't clear on the datatypes since some had and some don't, and there weren't any in the service manifest. All should be good now.

Copy link
Member

Choose a reason for hiding this comment

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

It takes some time to convert all old code to datatypes, but I think it should be enforced for new parameters.

@bastelfreak bastelfreak added enhancement New feature or request needs-work not ready to merge just yet labels Jan 10, 2019
@@ -41,6 +65,7 @@
$id = $title,
$port = undef,
$service_name = $title,
Hash $service_config_hash = {},
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 align the = chars and enforce the structure of the Hash?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Alignment done, enforcement delayed per our slack conversation

@bastelfreak bastelfreak removed the needs-work not ready to merge just yet label Jan 14, 2019
@bastelfreak bastelfreak merged commit f2e5366 into voxpupuli:master Jan 14, 2019
spuder pushed a commit to spuder/puppet-consul that referenced this pull request Feb 25, 2020
Add service_config_hash to customize services
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.

None yet

2 participants