Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If 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.


Agree Consul is an elegant solution for managing files, what about running commands?


I 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

edit: Also, Nomad would be another choice if you're looking at hashi tools.


cloud-init?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: