HiveBrain v1.2.0
Get Started
← Back to all entries
snippetMinor

How to give value in runtime for chef

Submitted by: @import:stackexchange-devops··
0
Viewed 0 times
chefruntimegivevalueforhow

Problem

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?

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.

Context

StackExchange DevOps Q#1780, answer score: 2

Revisions (0)

No revisions yet.