https://github.com/tankibaj/cloudinit-with-vagrant
Validate a cloud-init file locally or without spinning up a real VM on the cloud
https://github.com/tankibaj/cloudinit-with-vagrant
Last synced: 5 months ago
JSON representation
Validate a cloud-init file locally or without spinning up a real VM on the cloud
- Host: GitHub
- URL: https://github.com/tankibaj/cloudinit-with-vagrant
- Owner: tankibaj
- Created: 2021-02-04T16:09:57.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-04T16:26:09.000Z (over 4 years ago)
- Last Synced: 2025-02-17T21:38:31.807Z (8 months ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Test a cloud-init locally
If you want to validate a cloud-init file locally or without spinning up a real VM on the cloud, then the most suitable choice is Vagrant.
### Prerequisites
- [Virtualbox](https://www.virtualbox.org/wiki/Downloads)
- [VirtualBox Extension Pack](https://download.virtualbox.org/virtualbox/6.1.18/Oracle_VM_VirtualBox_Extension_Pack-6.1.18.vbox-extpack)
- [Vagrant](https://www.vagrantup.com/downloads)### Getting started
###### Install vagrant plugins
```bash
vagrant plugin install vagrant-disksize && vagrant plugin install vagrant-env
```###### Clone repo
```bash
git clone git@github.com:tankibaj/Cloud-init-Vagrant.git && cd Cloud-init-Vagrant
```###### Modify user-data.yml (optional)
```bash
nano user-data.yml
```###### Spin up a VM
```bash
vagrant up
```