snippetMinor
How to give value in runtime for chef
Viewed 0 times
chefruntimegivevalueforhow
Problem
I got stuck with a scenario where I need to provide runtime value while restarting/starting
I installed SSL certs where it asks password for every reload or start. I tried giving:
But I don't have any luck.
Any help about how to pass this value while
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"
endBut I don't have any luck.
Any help about how to pass this value while
httpd restarts using Chef?Solution
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.
By secret management I mean tooling like k8s secret management or Vault.
You can read Medium post about secrets.
Context
StackExchange DevOps Q#1780, answer score: 2
Revisions (0)
No revisions yet.