In this quickstart libvirt
it is used as example but same logic can be applied to other terraform providers.
-
cd libvirt/terraform/
-
Make sure you use terraform workspaces, create new one with:
terraform workspace new $USER
For more doc, see: workspace.
If you don't create a new one, the string default
will be used as workspace name. This is however highly discouraged since the workspace name is used as prefix for resources names, which can led to conflicts to unique names in a shared server ( when using a default name).
-
Edit the
terraform.tfvars.example
file, following the Readme.md in the provider directory. -
Adapt pillars:
Choose one profile, among the list. (in this example we choose cost_optimized
)
- from root top-level dir:
cp pillar_examples/libvirt/cost_optimized/* salt/hana_node/files/pillar
For more informations have a look at pillar-doc
This project is organized in folders containing the Terraform configuration files per Public or Private Cloud providers, each also containing documentation relevant to the use of the configuration files and to the cloud provider itself.
The documentation of terraform and the cloud providers included in this repository is not intended to be complete, so be sure to also check the documentation provided by terraform and the cloud providers.
All Terraform configurations were tested with the 0.11.14 version