Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Terraform be used to provision on-premises servers?

Tags:

terraform

I'm new to Terraform, but how to say run it on a regular server? Is it possible? I am talking - regular on premises machine

EDIT: Years later I come back to this question: Let me reform it. Can Terraform be used to provision a datacenter server, which is not on a hypervisor.

like image 618
qubsup Avatar asked Aug 20 '17 13:08

qubsup


People also ask

Can you manage on premise data Centre with Terraform?

Yes, Terraform can be used for on-prem infrastructure. There are many providers which are available.

What can you provision with Terraform?

»Provisioning Infrastructure with Terraform. Terraform's primary function is to create, modify, and destroy infrastructure resources to match the desired state described in a Terraform configuration.

Is Terraform for cloud only?

One of the main appeals of Terraform is how it works across all the cloud providers at the same time, unlike many of Terraform's direct competitors like CloudFormation, which work primarily with a single cloud provider only.

Can you use Terraform locally?

Terraform supports a bunch of providers, but the vast majority of them are public cloud based. However, you could set up a local VMware vSphere cluster and use the vSphere provider to interact with that to get you going. There's also a provider for OpenStack if you want to set up an OpenStack cluster.


1 Answers

Terraform operates by calling into the APIs of various service providers and systems. Thus in principle Terraform can manage anything that has an API, and in practice it has existing support for a few different on-premises-capable systems, including:

  • OpenStack
  • VMWare vSphere
  • CloudStack

If the compute resources in your existing datacenter infrastructure are already managed with one of these systems, or if you are willing to install them, then Terraform can be used to manage at least parts of these systems. (For full details, see the documentation for each provider linked above.)

Terraform's plugin architecture allows support for other systems to be developed, so other API-driven datacenter management systems such as The Foreman could be supported by Terraform, and indeed third parties have developed integrations with others that are distributed outside of the "official set" that HashiCorp hosts.

like image 189
Martin Atkins Avatar answered Oct 14 '22 04:10

Martin Atkins