How to give value in runtime for chef I got stuck with a scenario where I need to provide runtime value while restarting/starting httpd service using Chef.

I installed SSL certs where it asks password for every reload or start. I tried giving:

service 'httpd' do
  supports restart: true, reload: false, status: true
  options "password"
end 


But I don't have any luck. 

Any help about how to pass this value while httpd restarts using Chef?
You shouldn't. Instead you should use proper secrets management system that would provide you unlocked SSL certificate.



By secret management I mean tooling like k8s secret management or Vault.

You can read Medium post about secrets.