Hacker News new | ask | show | jobs
by sedachv 3029 days ago
There is an even better alternative. You can put infrastructure information into the same version control repository where your infrastructure code lives, and you can even keep all the benefits of spreadsheets by using plain text format spreadsheets like Org-mode tables.

This means you do not have two sources of truth to maintain (what is in the RDBMS, and how that relates to what is in the infrastructure code repository), the RDBMS system does not have to reinvent versioning, you can see exactly how your infrastructure evolves, you can do atomic changes to both the infrastructure code and the infrastructure information that the code relies on (obviously you need a modern version control system for this), and the infrastructure code can access the infrastructure information in a much more straightforward (and much easier to test) way.

1 comments

This would become very exhausting if working with very large infrastructures. 80 000 virtual and physical servers? Have fun keeping that data consistent, up to date and available with Org-mode and version control.

I'm not saying your example is wrong, but "there is an even better alternative" doesn't always apply. For smaller scales, sure.

VMs need to be kept track of in whatever system you use for provisioning (AWS, OpenStack), otherwise you now have three sources of truth: what the configuration says should be running, what the DCIM thinks is running, and what is actually running.