Skip to content

EngineerBetter/bosh-training-infra

Repository files navigation

BOSH Training Infra

Welcome!! This repository contains the resources and pipeline for setting up the training infrastructure and environments for students to participate in the BOSH Training.

Architecture

Infra

Adding a student

To add a student you'll need to add the following entry into the students list stored within the student.auto.tfvars.json file.

{
  "students": [
    {
      "name": "test_user1",
      "ips": [
        "127.0.0.1",
        "255.255.255.0"
      ],
      "subnet_cidr": 10.0.1.0/24"
    },
+   {
+     "name": "test_user2",
+     "ips": [
+       "<HOME_IP_ADDRESS>",
+       "<ADMIN/TUTOR_IP_ADDRESS>"
+     ],
+     "subnet_cidr": "10.0.2.0/24"  <---- Increment the third octet since we're using /24
+   }
  ]
}

Accessing the BOSH Training Environment

Each student listed in students file should have an archive within the eb-bosh-training-infra bucket. The link for a student should be as follows https://eb-bosh-training-infra.s3.eu-west-2.amazonaws.com/student-packs/<student-name>.tgz.

Once downloaded, each student would need to:

## decompress and unarchive the file
$ tar zxvf <student-name>.tgz

## ensure all env variables
## are set in your shell environment
# linux/macos
$ eval "$(cat bosh_env_vars)"

# windows
$ call bosh_env_vars.bat

## test student credentials work
$ bosh login
Successfully authenticated with UAA

$ bosh env
Using environment '<ip-address>' as client 'admin'

Name               bosh-training-<student-name>
UUID               e3957fa4-1471-44a6-9a97-1579c99c64fc
Version            273.0.0 (00000000)
Director Stemcell  -/0.3
CPI                warden_cpi
Features           config_server: enabled
                   local_dns: enabled
                   power_dns: disabled
                   snapshots: disabled
User               admin

Succeeded

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published