Skip to content

Commit

Permalink
Merge pull request #71 from tarhan/dev
Browse files Browse the repository at this point in the history
Remove Ansible requirement from Host OS in case of Vargant deployment.
  • Loading branch information
Madison Bahmer committed Aug 22, 2016
2 parents 904dcf7 + f537d0a commit 1dfded7
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,14 @@ Vagrant.configure(2) do |config|

config.vm.define 'scdev' do |node|
node.vm.box = 'ubuntu/trusty64'
#node.vm.box = 'centos/7'
# node.vm.box = 'centos/7'
node.vm.hostname = 'scdev'
node.vm.network "private_network", ip: "192.168.33.99"
node.vm.provision "ansible" do |ansible|
ansible.verbose = true
ansible.groups = {
"kafka" => ["scdev"],
"zookeeper" => ["scdev"],
"redis" => ["scdev"],
"virtualenv" => ["scdev"],
"all_groups:children" => ["kafka", "zookeeper", "redis", "virtualenv"]
}
node.vm.provision "ansible_local" do |ansible|
ansible.playbook = "ansible/scrapy-cluster.yml"
node.vm.provision "shell", inline: "service supervisord restart", run: "always"
ansible.inventory_path = "ansible/sc.inventory"
ansible.raw_arguments = ["-c", "local"]
end
node.vm.provision "shell", inline: "service supervisord restart", run: "always"
end
end

0 comments on commit 1dfded7

Please sign in to comment.