Stewart Smith: Puppet snippet for setting up a machine to build Drizzle
You could use this in a Vagrant setup if you like (I’ve done so for testing).
Step 1) Set the following in your Vagrantfile:
Vagrant::Config.run do |config| config.vm.box = "lucid32" config.vm.box_url = "http://files.vagrantup.com/lucid32.box" config.vm.provision :puppet end
Step 2) Get puppet-apt helper.
I used https://github.com/evolvingweb/puppet-apt and put it in a manifests/ directory like so:
$ mkdir manifests $ cd manifests $ git clone git://github.com/evolvingweb/puppet-apt.git
Step 3) Write your puppet manifest:
import "puppet-apt/manifests/init.pp" import "puppet-apt/manifests/ppa.pp"
class drizzlebuild {
apt::ppa { "ppa:drizzle-developers/ppa": }
package { "drizzle-dev":
ensure => latest,
}
}
include drizzlebuild
Step 4) “vagrant up” and you’re done! Feel free to build Drizzle inside this VM.
I’m sure there may be some more proper way to do it all, but that was a pretty neat first intro to me to Puppet and friends :)
_______________________________________________ Mailing list: https://launchpad.net/~drizzle-discuss Post to : [email protected] Unsubscribe : https://launchpad.net/~drizzle-discuss More help : https://help.launchpad.net/ListHelp

