/azure-net

Network resources related to the Azure account used by the Jenkins project

Primary LanguageHCLMIT LicenseMIT

Jenkins infra on Azure Network

Table of Contents

This repository hosts the infrastructure-as-code definition for all the Azure hosted resources related to the network for the Jenkins Infrastructure Project.

Requirements

In order to use this repository to provision the Jenkins infrastructure on Azure, you need:

git submodule update --init --recursive

HowTo

Provision

Don’t blindly execute the terraform code located in this repository on your own account as it may lead your account bill to significantly increase.

Once you’ve fulfilled the Requirements, you may execute any command from https://github.com/jenkins-infra/shared-tools/blob/main/terraform/README.adoc#available-commands by adding the correct flag --directory pointing to .shared-tools/terraform/:

make --directory=.shared-tools/terraform help
make --directory=.shared-tools/terraform lint
# ...

A usual change to this repository looks like the following:

  • Fork the repository and clone it locally

  • Follow the Requirements steps to obtain the shared tools

  • Start by running a full make --directory=.shared-tools/terraform validate command to ensure that you work on a sane base (should generate a report TXT file with no changes to be applied)

  • Edit the Terraform project files

  • Run the command make --directory=.shared-tools/terraform validate again to ensure that your changes are OK

  • Commit, push and open a pull request to let the Jenkins pipeline run the test + plan (as per https://github.com/jenkins-infra/shared-tools/blob/main/terraform/README.adoc#jenkins-pipeline)