From 3f9bce80871ca4e97ab3af536e70d229ee751660 Mon Sep 17 00:00:00 2001 From: Yuriy Andamasov Date: Fri, 1 May 2026 20:15:21 +0300 Subject: Add Terraform for VyOS overview page from circinus (#1856) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add Terraform for VyOS overview page from circinus Sync terraformvyos.rst from circinus branch and add to toctree. 🤖 Generated by [robots](https://vyos.io) * fix: clean up terraformvyos.rst typos, line length, linter issues Fix typos (Terrafom, terraforms, ip adresses), wrap lines to 80 chars, add stop/start_vyoslinter around long URL targets, fix grammar. 🤖 Generated by [robots](https://vyos.io) --- docs/automation/terraform/index.rst | 1 + docs/automation/terraform/terraformvyos.rst | 43 +++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 docs/automation/terraform/terraformvyos.rst (limited to 'docs') 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 / # 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 -- cgit v1.2.3