Skip to content
TheSerapher edited this page Nov 6, 2012 · 1 revision

If you wish to test this cookbook the following Vagrantfile will do the trick. I am using a CentOS 6.3 minimal box.

# vi: set ft=ruby :
Vagrant::Config.run do |config|
  # Debian Squeeze, 64 bit
  config.vm.box = "centos"

  # Internal URL, no public access
  config.vm.host_name = "vagrant-01.local"

  # Chef Solo provisioner
  config.vm.provision :chef_solo do |chef|
    # Paths relative to Vagrantfile
    chef.cookbooks_path = ["cookbooks"]
    chef.add_recipe "qmailtoaster"
    chef.json = {
      "machine" => "x86_64",
      "qmailtoaster" => { "vpopmail" => { "database" => { "password" => "vpopmail_db_pass" } } },
      "mysql" => { "server_root_password" => "root", "server_repl_password" => "repl", "server_debian_password" => "debian" },
      "yum" => { "exclude" => [ "*.i386", "*.i586", "*.i686" ] }
    }
    chef.log_level = :debug
  end
end
Clone this wiki locally