Initial persister support.

This is untested and is missing the needed data bag for the persister.
This commit is contained in:
Tim Kuhlman 2014-02-25 15:20:17 -07:00
parent c243e26507
commit 6b82ff4442
3 changed files with 28 additions and 0 deletions

View File

@ -2,5 +2,6 @@ metadata
cookbook 'hostsfile', '= 1.0.1'
cookbook 'kafka', git: 'git@git.hpcloud.net:mon/cookbooks-kafka'
cookbook 'percona', git: 'https://github.com/tkuhlman/chef-percona'
cookbook 'persister', git: 'git@git.hpcloud.net:mon/cookbooks-persister'
cookbook 'vertica', git: 'git@git.hpcloud.net:mon/cookbooks-vertica'
cookbook 'zookeeper', git: 'git@git.hpcloud.net:mon/cookbooks-zookeeper'

10
Vagrantfile vendored
View File

@ -43,6 +43,16 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
end
end
config.vm.define "persister" do |persister|
persister.vm.hostname = 'persister'
persister.vm.network :private_network, ip: "192.168.10.12"
persister.vm.provision :chef_solo do |chef|
chef.roles_path = "roles"
chef.data_bags_path = "data_bags"
chef.add_role "Persister"
end
end
config.vm.define "vertica" do |vertica|
vertica.vm.hostname = 'vertica'
vertica.vm.network :private_network, ip: "192.168.10.8"

17
roles/Persister.json Normal file
View File

@ -0,0 +1,17 @@
{
"name": "Persister",
"description": "Sets up Persister",
"json_class": "Chef::Role",
"default_attributes": {
},
"override_attributes": {
},
"chef_type": "role",
"run_list": [
"role[Basenode]",
"recipe[mon-persister]",
"recipe[sysctl]"
],
"env_run_lists": {
}
}