#ansible - July 2019

ansibleArchived
12 messages

Discussions related to ansible configuration management

Abel Luck
Abel Luckover 7 years ago
do you all bake amis with config secrets too? we've been deploying quasi-immmutable machines that pull config from ssm param store via confd
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
Confd is a nice approach
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
Gomplate also supports SSM.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
Or you can just have your ansible scripts use environment variables and call ansible with chamber
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
All options support headless operation
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
Definitely discourage baking secrets into images as rotation is painfully slow and keeping an immutable “log” of secrets is not advisable
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
(Also, goes without saying, all suggestions assume use of IAM instance profiles to obtain STS access credentials)
Abel Luck
Abel Luckover 7 years ago
what's the draw of gomplate over confd?
Abel Luck
Abel Luckover 7 years ago
one issue we've had with this quasi-immutable amis + confd approach is dependency order.. a ssm value gets changed, but the instance isnt rebooted (or the service on it restarted)
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
I would strongly caution against automatic restarts of services as one wrong value and you nuke your cluster
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
That’s why Kubernetes for example takes a rolling restart approach. Changes to config
Maps are not immediate. Pods need to be explicitly restarted.
Blaise Pabon
Blaise Pabonover 7 years ago