An open API service indexing awesome lists of open source software.

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

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
```