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

regression of allowing http checks #206

Closed
sge-babrams opened this issue Aug 6, 2015 · 4 comments
Closed

regression of allowing http checks #206

sge-babrams opened this issue Aug 6, 2015 · 4 comments

Comments

@sge-babrams
Copy link

I am getting this while trying to converge on 1.0.0:

  ================================================================================
  Recipe Compile Error in /var/chef/cache/cookbooks/aio-elasticsearch/recipes/logs.rb
  ================================================================================

  Chef::Exceptions::ValidationFailed
  ----------------------------------
  Option check's value {:interval=>"10s", :http=>"http://localhost:9200", :timeout=>"2s"} Checks must be a hash containing either a `:ttl` key/value or a `:script` and `:interval` key/value!

  Cookbook Trace:
  ---------------
    /var/chef/cache/cookbooks/aio-elasticsearch/recipes/logs.rb:9:in `block in from_file'
    /var/chef/cache/cookbooks/aio-elasticsearch/recipes/logs.rb:3:in `from_file'

  Relevant File Content:
  ----------------------
  /var/chef/cache/cookbooks/aio-elasticsearch/recipes/logs.rb:

    2:  
    3:  consul_service_def 'elasticsearch-logs' do
    4:    port 9200
    5:    # tags ['sometag']
    6:    check(
    7:      interval: '10s',
    8:      http: 'http://localhost:9200',
    9>>     timeout: '2s'
   10:  
   11:    #   script: 'echo ok'
   12:    )
   13:    notifies :reload, 'service[consul]'
   14:  end
   15:  

The functionality was added here: #143

@sge-babrams
Copy link
Author

Working as of 0.11.1

@johnbellone
Copy link
Contributor

The HWRP has changed.

@johnbellone
Copy link
Contributor

Please take a look at the README to understand what has changed.

@lock
Copy link

lock bot commented Apr 25, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants