Skip to content

My Raspberry Pi bootstrap virtualizing with Vagrant and provisioning with Ansible.

License

Notifications You must be signed in to change notification settings

japboy/vagrant-skel-rpi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vagrant-skel-rpi

My Raspberry Pi bootstrap virtualizing with Vagrant and provisioning with Ansible.

Requirements

Installation

Raspbian image

Create a Raspbian bootable SD card:

curl -LO http://downloads.raspberrypi.org/raspbian_latest
unzip ./YYYY-MM-DD-codename-raspbian.zip -d .
dd bs=1m if=./YYYY-MM-DD-codename-raspbian.img of=/dev/diskN

rasp-config

Finish the Raspbian initial configuration with rasp-config. Make sure to allow access to the Raspberry Pi through SSH.

.env

Create .env file in this directory and save your server IP address, user name, and password of the Raspberry Pi:

SERVER='192.168.1.100'
USERNAME='pi'
PASSWORD='raspberry'

Vagrant plugins

Install Vagrant plugins:

vagrant plugin install dotenv vagrant-managed-servers

Bootstrap

First of all, copy this repository as your project bootstrap, then follow the instruction below.

Start working on the project:

cd /path/to/proj
vagrant up --provider=managed

Provision the work environment:

vagrant provision

Log in to the virtualized SSH environment:

vagrant ssh

Stop working on the project and unlink it:

vagrant destroy

References

License

Distributed under Unlicense

About

My Raspberry Pi bootstrap virtualizing with Vagrant and provisioning with Ansible.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published