Just a vagrant repository for any web developement using a apache stack with Puppet, Vagant and Ruby for Jekyll (GitHub Pages) development.
- ip: "192.168.33.10"
- provider: "virtualBox"
- box: "precise64"
- hostname: "albatross"
- vb name: "albatross.dev"
- port: 4000
The configuration for each package is located in their respective folder. The packages included are listed as follows:
- apache
- apache2
- GitHub Pages
- ruby 2.0.0
- gem "github-pages"
- therubyracer
$ vagrant box add precise64 http://files.vagrantup.com/precise64.box
-
Install Virtual Box
-
Install Vagrant
-
Install 'precise64' vagrant box
-
Clone this repository
-
Create a directory for your developement domain on the same level as this clone
-
Edit the VirtualHost entry in puppet/modules/vhost/files/site.conf to point to your development domain diectory
-
Open your hosts files
- For Linux based development system
/etc/hosts
- For Windows based development system
C:\Windows\System32\drivers\etc\hosts
- For Linux based development system
-
Add the following to your machine host file
192.168.33.10 albatross.dev
-
Open a terminal, go to the location of the git repository and boot up the vagrant box
$ vagrant up
-
Connect to the vagrant environment
$ vagrant ssh
-
cd
to the development repository on your vagrant box. Should be a directory under the/vagrant/
directory -
Move the main
Gemfile
to your repository$ mv /vagrant/Gemfile .
-
Install the gems in the
Gemfile
$ bundle install
-
Create a new jekyll site in your directory
$ jekyll new . --force
-
Start up the jekyll server
$ jekyll serve --host 0.0.0.0
And that is it! Your jekyll server should be active on port 4000
- Puppet.com - LAMP Stacks Made Easy with Vagrant & Puppet
- jrodriguezjr/puppet-lamp-stack
- thruflo/vagrant-jekyll
- GitHub - Setting up your GitHub Pages site locally with Jekyll
- Puppet CookBook
- Google groups - Puppet Users
- Jes.al for Ruby and Jekyll installation
- Bundler - Gemfile ruby version
- Jekyll
- Stacoverflow - Connecting to Jekyll server on Vagrant from outside