Giter Site home page Giter Site logo

vmctf's Introduction

VMC Terraform Scripts

This project contains Terraform scripts for deploying systems to VMware Cloud (VMC) on AWS.

Build

Build the docker image from this directory with the following command:

$ docker build -t vmctf .

Configuration

The environment variables listed below are common to all of the Terraform scripts in this repository:

Environment Variable Description
VSPHERE_SERVER The IP/FQDN of the vSphere server
VSPHERE_USER A vSphere username used to create/destroy vSphere resources
VSPHERE_PASSWORD The password for VSPHERE_USER

Provision

New systems may be provisioned with the script run.sh:

usage: run.sh deploy|destroy SYSTEM

Supported systems are:

  • openldap

Transforming Environment Variables

The script looks for environment variables with the prefix VMCTF_(.*) and writes them to a temporary file as $1 and TF_VAR_lcase($1). For example:

$ export VMCTF_NAME=hello
$ export VMCTF_FQDN=hello.com

The script will create a temporary file with the following contents:

NAME=hello
TF_VAR_name=hello
FQDN=hello
TF_VAR_fqdn=hello

The temporary file is used as the environment variable file when launching a new container for the Docker image vmctf.

vmctf's People

Contributors

akutz avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.