4 ms·
Typically I use Packer + Terraform and it works generally well (if you going with the immutable servers philosophy). However, often times immutable servers is h
by nodesocket 6y ago
Typically I use Packer + Terraform and it works generally well (if you going with the immutable servers philosophy). However, often times immutable servers is hard to actually do in practice. If Hashicorp added a new product similar to Ansible / Aviary.sh / Fabric I think it would complete the entire DevOps loop under a single ecosystem.
- raffraffraff 6y agoIf you're sticking with hashicorp tools and use consul, then something like consul-template should work. Your packer builds would just have to copy consul-template configs and template files for the things you want to manage. Each template watches the consul kv store for matching keys, and rewrites the target config file using their values. You can instantly rewrite configs and execute follow up actions across your fleet by updating a consul key value.
- nodesocket 6y agoAgree Consul is an elegant solution for managing files, what about running commands?
- moondev 6y agocloud-init?
- johntash 6y agoI don't see it used very often, but Consul actually can execute remote commands. You do have to enable it in the config though. https://www.consul.io/docs/commands/exec https://www.consul.io/docs/commands/exec edit: Also, Nomad would be another choice if you're looking at hashi tools.
- llama052 6y agoYou can hook ansible roles into your Packer process pretty easily. That's what I do at least.