From e8a8ea24863f6b64e44fdcaa0ea2845922baecb7 Mon Sep 17 00:00:00 2001 From: Tim Kuhlman Date: Thu, 20 Feb 2014 20:26:34 -0700 Subject: [PATCH] Added a Vertica vm --- Berksfile | 1 + README.md | 1 + Vagrantfile | 10 ++++++++++ roles/Vertica.json | 17 +++++++++++++++++ 4 files changed, 29 insertions(+) create mode 100644 roles/Vertica.json diff --git a/Berksfile b/Berksfile index f4e3505..f101b72 100644 --- a/Berksfile +++ b/Berksfile @@ -1,4 +1,5 @@ metadata cookbook 'hostsfile', '= 1.0.1' cookbook 'kafka', git: 'https://git.hpcloud.net/mon/cookbooks-kafka' +cookbook 'vertica', git: 'https://git.hpcloud.net/mon/cookbooks-vertica' cookbook 'zookeeper', git: 'https://git.hpcloud.net/mon/cookbooks-zookeeper' diff --git a/README.md b/README.md index c53c5fa..b15338a 100644 --- a/README.md +++ b/README.md @@ -32,4 +32,5 @@ vagrant up - Your home dir is synced to the vm in /vagrant_home on each vm - Vms created - `kafka` at `192.168.10.10` + - `vertica` at `192.168.10.8` - Run `vagrant help` for more info diff --git a/Vagrantfile b/Vagrantfile index 61e952f..64e1b98 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -21,4 +21,14 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| end end + config.vm.define "vertica" do |vertica| + vertica.vm.network :private_network, ip: "192.168.10.8" + vertica.vm.provision :chef_solo do |chef| + chef.roles_path = "roles" + chef.data_bags_path = "data_bags" + + chef.add_role "Vertica" + end + end + end diff --git a/roles/Vertica.json b/roles/Vertica.json new file mode 100644 index 0000000..cc40f88 --- /dev/null +++ b/roles/Vertica.json @@ -0,0 +1,17 @@ +{ + "name": "Vertica", + "description": "Sets up Vertica", + "json_class": "Chef::Role", + "default_attributes": { + }, + "override_attributes": { + }, + "chef_type": "role", + "run_list": [ + "role[Basenode]", + "recipe[vertica]", + "recipe[sysctl]" + ], + "env_run_lists": { + } +}