3 ms·
Does anyone know of the equivalent of Terraform for on-prem hardware? I explicitly do not want an automated agent that applies things or anything like that. I
by renewiltord 4y ago
Does anyone know of the equivalent of Terraform for on-prem hardware? I explicitly do not want an automated agent that applies things or anything like that.
I want to do this:
- image some hardware with Ubuntu
- set up SSH
- write a definition file, HCL is fine
- run a program that uses the definition and the IP address of the machine that applies the definition installing files, programs, whatever or removing them
It would be cool if:
1. There were a terraform provider for this
2. I can specify which IP address the hardware is at
3. `terraform apply` and be done with it
The cloud is absolutely fantastic for lots of things, and we have a mix of cloud infra and on-prem hardware. Ideally, I'm looking for something a 4-person team can manage with some wiggle room for failure. If we hit 99.9 we're fine, maybe even get by with 99.
After all, the alternative is that I reimage one of the servers on the few racks we have and it takes precious time but it's not really a problem.
- dpedu 4y agoI'm a heavy terraform user and I want something like this too. HCL and the surrounding tooling is just so nice. I mainly use puppet to manage my hobby machines & VMs, and puppet does violate the agentless bit you mentioned. What I like about it (over something like Ansible) is that it understands the resource dependency tree like Terraform does. Furthermore, I've set up my implementation so that it restores backups after installing services. So, for me, rebuilding a server is simply running a backup (optional) and then wiping the box. I saw a libvirt provider for terraform recently that can SSH to a host and then operate the libvirt API on it. That seems like a good starting point for something like this; take the SSH parts and use it to manage resources like files on the remote host. I've written a few simple terraform providers, it's not that hard to do. This sounds like a fun project and I'm pretty tempted to do this, actually.