This is workshop to learn "Infrastructure as Code" on OVH Public Cloud
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
1.test Merge pull request #21 from pilgrimstack/fige Oct 18, 2018
terraform-modules Merge pull request #21 from pilgrimstack/fige Oct 18, 2018
.gitignore Update 1.test terraform configuration Oct 11, 2017

This is an "Infrastructure as Code" workshop using:


You'll run a workshop which present you some "Infrastructure as Code" basics. IaC is the art of deploying and managing IT resources using programs and definition files in order to automatize and benefit from all the best practices in the development process like patching, templating, versioning and many others.

There will be 3 environments:

  • Dev: This environment is really simple and flexible, you'll learn here how to use OpenStack CLI and cloud-init script to manage post install configuration
  • Test: This one shows how to use Terraform, an orchestrator tool. You'll manipulate some resources, modules and template definitions with dependences
  • Prod: The last environment uses a versioned code to stabilize the infrastructure. You'll see also how to scale up and down an infrastructure

Broadly speaking, the workshop presents files with missing parts and you'll have to complete its with copy/paste actions. Of course, the interest for you is to pay attention on the code structure and best practices to understand the possibilities you have with IaC.


Test architecture


To start the workshop, you'll need an OVH Account, a new cloud project attached to a vRack.

OVH account

You can skip this section if you already have one but be sure to be able to run a workshop on it (your company could have some restrictions about that if you plane to use your company's account).

If you run this workshop online and you don't have an account, just sign up and log in to the web console.

If you run this workshop during a training session, the OVH account creation is not include in the schedule (1h30). Be sure to have it before the session and go directly in to the web console.

Cloud project

Click on the "Cloud" tab then on "Order" button. Select "Cloud Project" and use your voucher code to apply.


Once your cloud project is ready, click on "Enable the vRack" and go through the command process. Wait up to 3 min and go back to the web console in "Dedicated" tab then click on the vRack menu. Here you should see a new vRack named "pn-XXX". Select this vRack and add your cloud project inside using the "Add" button.

An OpenStack User

Go back to your cloud project and click on "OpenStack" in the left bar, then on "Add a User".

Now we'll get the configuration file for this user. Click on the small tool icon on the right side of the user line, then on "Download the OpenStack configuration file". Keep the text editor open, we'll copy/paste the content of this file.


If you need help on that part, please watch those videos:

Let's Go!

A server is available with a prepared environment.


The IP and the password are provided during the workshop. You have to give a unique ID, it can be your desktop ID or your (without accent and space). In case of connection lost, just redo the same.

Create a file named credentials and paste the content of the downloaded file on the previous step.

git clone
cd workshop-301/

Let's go to the development environment.