Created
March 17, 2016 05:53
-
-
Save oscarruesga/907a73c41c6c1420acca to your computer and use it in GitHub Desktop.
Vagrant File to deploy Confluent Plattform
This file contains hidden or 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 : | |
| Vagrant.configure(2) do |config| | |
| config.vm.box = "ubuntu/trusty64" | |
| config.vm.network "private_network", ip: "192.168.33.50" | |
| config.vm.provider "virtualbox" do |vb| | |
| vb.memory = "2048" | |
| end | |
| config.vm.provision "shell", inline: <<-SHELL | |
| sudo add-apt-repository "deb http://packages.confluent.io/deb/2.0 stable main" | |
| sudo apt-get update && sudo apt-get install -y --force-yes openjdk-7-jdk confluent-platform-2.11.7 | |
| sed "/^advertised.host.name=.*/d" /etc/kafka/server.properties | |
| echo "advertised.host.name=192.168.33.50" >> /etc/kafka/server.properties | |
| SHELL | |
| config.vm.provision "shell", run: "always", inline: <<-SHELL | |
| zookeeper-server-start -daemon /etc/kafka/zookeeper.properties | |
| kafka-server-start -daemon /etc/kafka/server.properties | |
| schema-registry-start -daemon /etc/schema-registry/schema-registry.properties | |
| kafka-rest-start -daemon /etc/kafka-rest/kafka-rest.properties | |
| SHELL | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment