4

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?

Pierre.Vriens
  • 7,225
  • 14
  • 39
  • 84
pandey
  • 949
  • 2
  • 9
  • 18

1 Answers1

2

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.

Hauleth
  • 456
  • 2
  • 9