GithubHelp home page GithubHelp logo

vagrant-cloud-init's Introduction

vagrant-cloud-init

Vagrant project for testing cloud-init scripts.

How to Use

  1. Edit the meta-data.yaml and user-data.yaml files located in <project-directory>/cloud-init/nocloud-net/.

    • Note that the vagrant provisioner copies the above files to /var/lib/cloud/seed/nocloud-net/ without the .yaml extension.
  2. Start the box, login and check the configuration.

    $ vagrant up
    $ vagrant ssh
    <box> $ # check configuration
  3. Once you're finished, you can destroy the box with

    $ vagrant destroy

If you want to test changes without restarting the box, follow these steps:

  1. Edit the meta-data and user-data files located on the box in /var/lib/cloud/seed/nocloud-net/.

  2. Remove particular files that identify the current cloud-init instance configuration (which stop cloud-init from re-running).

    <box> $ sudo rm -fr /var/lib/cloud/sem/* /var/lib/cloud/instance /var/lib/cloud/instances/*
  3. Force cloud-init to run again.

    <box> $ sudo cloud-init init
    <box> $ sudo cloud-init modules

Notes

Modules

As this project is using vagrant, it relies on the nocloud module. There are two variations of this module; one that does not provide network access and one that does; this project uses the latter by default.

  1. No network access: /var/lib/cloud/seed/nocloud/
  2. Network access enabled: /var/lib/cloud/seed/nocloud-net/

Links

http://cloudinit.readthedocs.io

vagrant-cloud-init's People

Contributors

craighurley avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.