Skip to content

Instantly share code, notes, and snippets.

@Ph3nol
Last active December 14, 2015 10:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ph3nol/5075580 to your computer and use it in GitHub Desktop.
Save Ph3nol/5075580 to your computer and use it in GitHub Desktop.
Make a Debian 6.0 + Puppet 3 Vagrant box

Make a Debian 6.0 + Puppet 3 Vagrant box

Init a vagrant box with vagrant init, and update Vagrantfile to base your future one on your favorite Debian 6 32 or 64 bits box.

Then: vragrant up, vagrant ssh and let's go.

Puppet 3 installation

Add PuppetLabs apt sources:

$ wget http://apt.puppetlabs.com/puppetlabs-release-precise.deb
$ sudo dpkg -i puppetlabs-release-precise.deb
$ sudo apt-get update

Then install Puppet 3 with sudo apt-get install puppet.

Debian 6 udev bug fix

To prevent network interfaces problems, you must change udev net rules generator.

$ sudo rm /etc/udev/rules.d/70-persistent-net.rules
$ sudo touch /etc/udev/rules.d/75-persistent-net-generator.rules
$ sudo /sbin/udevadm control --reload-rules

Make your ready Vagrant box

Now, just exit your VM shell and make your packaged box with vagrant package. A .box file is generated, which you can based your future boxes on.

Enjoy.


Discover Web VM Generator and generate your Web VM's easily.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment