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

Chef not reading parameters hash #196

Open
gangadhar01a opened this issue Apr 1, 2020 · 1 comment
Open

Chef not reading parameters hash #196

gangadhar01a opened this issue Apr 1, 2020 · 1 comment
Labels
Waiting on Contributor Awaiting on the person who raised this to update

Comments

@gangadhar01a
Copy link

🗣️ Foreword

Thank for taking the time to fill this bug report fully. Without it we may not be able to fix the bug, and the issue may be closed without resolution.

👻 Brief Description

I have declared parameters as hash as shown below, after the chef ran these parameters are not reflected in the varnish config.

  parameters = { 'thread_pool_min' => '5',
     'thread_pool_max' => '5000',
     'thread_pool_timeout' => '300' }

Tried the following definition which updated the varnish config but chef lint resulted in an error

  parameters ({ 'thread_pool_min' => '5',
     'thread_pool_max' => '5000',
     'thread_pool_timeout' => '300' })

Lint error:

recipes/varnishinstall.rb:22:13: W: Lint/ParenthesesAsGroupedExpression: (...) interpreted as grouped expression.
  parameters ({
            ^

🥞 Cookbook version 4.0.1

Version of the cookbook where you are encountering the issue.

👩‍🍳 Chef-Infra Version 14

Version of chef-client in your environment.

🎩 Platform details

OS: centos 7
Operating system distribution and release version. Cloud provider if running in the cloud.

@ramereth
Copy link
Contributor

ramereth commented Oct 4, 2020

You should be able to do it via the following:

parameters { 
  foo: 'bar'
}

@ramereth ramereth added the Waiting on Contributor Awaiting on the person who raised this to update label Oct 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Waiting on Contributor Awaiting on the person who raised this to update
Projects
None yet
Development

No branches or pull requests

2 participants