diff options
| -rw-r--r-- | docs/automation/terraform/index.rst | 1 | ||||
| -rw-r--r-- | docs/automation/terraform/terraformvyos.rst | 43 |
2 files changed, 44 insertions, 0 deletions
diff --git a/docs/automation/terraform/index.rst b/docs/automation/terraform/index.rst index 364a00b7..f81820d2 100644 --- a/docs/automation/terraform/index.rst +++ b/docs/automation/terraform/index.rst @@ -20,6 +20,7 @@ official documentation for Terraform_ and Ansible_. :maxdepth: 1 :caption: Guides + terraformvyos terraformAWS terraformAZ terraformGoogle diff --git a/docs/automation/terraform/terraformvyos.rst b/docs/automation/terraform/terraformvyos.rst new file mode 100644 index 00000000..a4d54f8a --- /dev/null +++ b/docs/automation/terraform/terraformvyos.rst @@ -0,0 +1,43 @@ +:lastproofread: 2024-03-03 + +.. _terraformvyos: + +Terraform for VyOS +================== + +VyOS supports development infrastructure via Terraform and +provisioning via Ansible. Terraform allows you to automate the +process of deploying instances on many cloud and virtual +platforms. In this article, we will look at using Terraform to +deploy VyOS on platforms - AWS, Azure, and vSphere. For more +details about Terraform please have a look at link_. + +You will need to install_ Terraform before proceeding. + +Structure of files in the standard Terraform project: + +.. code-block:: none + + . + ├── main.tf # The main script + ├── version.tf # File for the changing version of Terraform. + ├── variables.tf # The file of all variables in "main.tf" + └── terraform.tfvars # The value of all variables (passwords, login, IP addresses and so on) + + +General commands that we will use for running Terraform scripts + + +.. code-block:: none + + cd /<your folder> # go to the Terraform project + terraform init # install all add-ons and providers (AWS, Azure, and so on) + terraform plan # show what is changing + terraform apply # run script + yes # apply running + + +.. stop_vyoslinter +.. _link: https://developer.hashicorp.com/terraform/intro +.. _install: https://developer.hashicorp.com/terraform/tutorials/aws-get-started/install-cli +.. start_vyoslinter |
