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 grpc support #499

Closed
wants to merge 447 commits into from
Closed

Add grpc support #499

wants to merge 447 commits into from

Conversation

spuder
Copy link
Contributor

@spuder spuder commented Sep 27, 2019

Resolves issue #498

Dmitry A. Kulakov and others added 30 commits December 26, 2017 18:00
Added the ui parameter and removed ui_* ones
382 added support for the `args` parameter to the `consul_validate_checks` function, but it isn't accepted by the `consul::check` resource.
Add `args` parameter to `consul::check`
Removed command substitution in init script
Added experimental Windows support
Add `args` parameter to `consul::watch`
"In Consul 1.0 and later [addresses from config_hash] can be set to a space-separated list of addresses to bind to [...]" https://www.consul.io/docs/agent/options.html#addresses

Using a space-separated list in addresses for 'http' is currently not supported because it would break config in init scripts and other places. Limiting this to the first one mentioned fixes this.
Support space-separated list in addresses
Add new parameters to configure consul permissions in the binary
…ater

Consul 1.1.0 has dropped support for enableTagOverride. Use enable_tag_override instead.
Change enableTagOverride to enable_tag_override in Consul 1.1.0 and later
Unless a host installed consul, facter `consul_version` returns undef and `versioncmp` raises evaluation error.

example:

> Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, 'versioncmp' parameter 'a' expects a String value, got Undef (file: /etc/puppetlabs/code/environments/ci/vendor/modules/consul/manifests/service.pp, line: 51, column: 6) (file: /etc/puppetlabs/code/environments/ci/vendor/modules/consul/manifests/init.pp, line: 238)
Use $consul::version instead of facter consul_version (Fix 09297fa)
@spuder
Copy link
Contributor Author

spuder commented Nov 1, 2019

Rebased

@bastelfreak
Copy link
Member

@spuder can you take a look at the failing travis tests?

cmd-ntrf and others added 10 commits November 11, 2019 12:12
As expressed issue voxpupuli#231, consul reload will fails if it happens while consul is still booting. However, the addition of multiple tries does not solve the issue as all tries can occur in a very short lapse of time.

In this PR, we introduce a sleep between each try, leaving consul up to 20 seconds between the first and the last reload to complete its boot, which should be enough.
Add a sleep between tries of consul service reload
This change is based on systemd documentation from:
https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/
The network-online.target is reached after an actual ip configuration is
up. This is required if consul should bind to a specific ip address.
systemd: Start consul after network is really up
fix(reload_service): remove typo in reload_options
@spuder
Copy link
Contributor Author

spuder commented Feb 25, 2020

I've rebased and pushed again. The failing CI tests appear to be unrelated to any changes that I have made. I'm not quite sure why they are broken since it is referencing a file that doesn't even exist spec/fixtures/modules/consul/manifests/params.pp

     # Puppet::PreformattedError:
     #   Evaluation Error: Operator '[]' is not applicable to an Undef Value. (file: /home/travis/build/solarkennedy/puppet-consul/spec/fixtures/modules/consul/manifests/params.pp, line: 18, column: 17)
     #   ./vendor/bundle/ruby/2.4.0/gems/puppet-5.5.18/lib/puppet/pops/evaluator/runtime3_support.rb:39:in `optionally_fail'
  2) consul::watch on opensuse-13-x86_64  with valid type and handler is expected to contain File[/etc/consul/watch_my_watch.json] with content =~ /"handler" *: *"handler_path"/ and content =~ /"type" *: *"nodes"/
     Failure/Error:
       should contain_file('/etc/consul/watch_my_watch.json') \
           .with_content(/"handler" *: *"handler_path"/) \
           .with_content(/"type" *: *"nodes"/)
     Puppet::PreformattedError:
       Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Operator '[]' is not applicable to an Undef Value. (file: /home/travis/build/solarkennedy/puppet-consul/spec/fixtures/modules/consul/manifests/params.pp, line: 18, column: 17) (line: 2) on node travis-job-d47f9421-2068-400d-a553-40e0d674f975.c.travis-ci-prod-3.internal

@stale
Copy link

stale bot commented Feb 16, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Feb 16, 2022
@stale stale bot closed this Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.