https://github.com/philipsahli/terraform-module-virtualbox-cloudinit
A Terraform module to create virtual machines and cloudinit based configuration (AWS EC2 style)
https://github.com/philipsahli/terraform-module-virtualbox-cloudinit
cloudinit terraform-module virtualbox
Last synced: 9 months ago
JSON representation
A Terraform module to create virtual machines and cloudinit based configuration (AWS EC2 style)
- Host: GitHub
- URL: https://github.com/philipsahli/terraform-module-virtualbox-cloudinit
- Owner: philipsahli
- Created: 2019-10-25T04:11:51.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-26T06:31:16.000Z (over 6 years ago)
- Last Synced: 2025-01-10T19:46:11.610Z (about 1 year ago)
- Topics: cloudinit, terraform-module, virtualbox
- Language: HCL
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# terraform-module-virtualbox-cloudinit
> A Terraform module to create virtual machines and cloudinit based configuration (AWS EC2 style).
## Table of contents
* [General info](#general-info)
* [Technologies](#technologies)
* [Setup](#setup)
* [Features](#features)
* [Status](#status)
* [Usage](#usage)
* [Contact](#contact)
## General info
This project has been created to launch servers on Virtualbox in an AWS EC2 style.
## Technologies
Project uses:
* Terraform version: >= 0.12
* Virtualbox
## Features
* Virtual machines creation
* Disk image VDI format
* Cloudinit OS configuration
* Forwards port 222? to machines
## Status
Project is: _in progress_
## Usage
See also [examples](examples/) folder.
### Module
Use the module in your TF root project
# amzn2.tf:
module "amzn2" {
source = "github.com/philipsahli/terraform-module-virtualbox-cloudinit"
vm_name = var.vm_name
vm_count = var.vm_count
vdi = var.vdi
userdata = var.userdata
}
Define variables for your setup.
# terraform.tfvars:
vm_name = "node"
vm_count = 2
vdi = "https://cdn.amazonlinux.com/os-images/2.0.20190823.1/virtualbox/amzn2-virtualbox-2.0.20190823.1-x86_64.xfs.gpt.vdi"
userdata = < #vim:syntax=yaml
users:
- default| - |
### Output Variable
At the moment the module does not output any variable.
## Contact
Created by [@philipsahli](https://github.com/philipsahli) - feel free to contact me!