Last active
December 12, 2015 01:08
-
-
Save clifferson/4688994 to your computer and use it in GitHub Desktop.
Vagrantfile for celery using rabbitmq and worker recipe.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
require 'berkshelf/vagrant' | |
Vagrant::Config.run do |config| | |
config.vm.host_name = "celery-berkshelf" | |
#config.vm.box = "Berkshelf-CentOS-6.3-x86_64-minimal" | |
#config.vm.box_url = "https://dl.dropbox.com/u/31081437/Berkshelf-CentOS-6.3-x86_64-minimal.box" | |
config.vm.box = "base" | |
config.vm.box_url = "http://files.vagrantup.com/precise64.box" | |
config.vm.share_folder "celery-tasks", "/tmp/celery-tasks", "/Users/cerson/ProJects/celery-tasks" | |
config.vm.customize [ | |
"modifyvm", :id, | |
"--memory", "4098", | |
"--cpus", "2", | |
"--chipset", "ich9", | |
"--vram", "10" | |
] | |
config.vm.network :hostonly, "33.33.33.10" | |
config.ssh.max_tries = 40 | |
config.ssh.timeout = 120 | |
config.vm.provision :chef_solo do |chef| | |
chef.json = { | |
:rabbitmq => { | |
:use_distro_version => true | |
}, | |
:celery => { | |
:worker => { | |
:install_location => '/srv/celery-worker', | |
:repository => '/tmp/celery-tasks' | |
} | |
} | |
} | |
chef.run_list = [ | |
"recipe[rabbitmq]", | |
"recipe[celery::default]", | |
"recipe[celery::worker]" | |
] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment