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
### Keybase proof | |
I hereby claim: | |
* I am gastongonzalez on github. | |
* I am therealgaston (https://keybase.io/therealgaston) on keybase. | |
* I have a public key ASCmhggiOgGICMPoTlSiBRtevOKBDla6-Whdc4JZDw1RZQo | |
To claim this, I am signing this object: |
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
tickTime=2000 | |
initLimit=5 | |
syncLimit=2 | |
leaderServes=yes | |
forceSync=no | |
dataDir=/var/lib/zookeeper | |
leaderPort=2888 | |
clientPort=2181 | |
electionPort=3888 | |
server.1:zk1.localdomain:2888:3888 |
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 : | |
Vagrant.configure('2') do |config| | |
config.ssh.private_key_path = '/Users/gaston/vagrant-keys/vagrant' | |
config.vm.provider :proxmox do |proxmox| | |
#proxmox.endpoint = 'http://localhost:8006/api2/json' | |
proxmox.endpoint = 'https://192.168.5.110:8006/api2/json' |
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
{ | |
"id": "zookeeper", | |
"glab": [ | |
"zk1.localdomain", | |
"zk2.localdomain", | |
"zk3.localdomain" | |
] | |
} |
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
# Use Oracle JDK 8 | |
default['java']['install_flavor'] = 'oracle' | |
default['java']['jdk_version'] = '8' | |
default['java']['oracle']['accept_oracle_download_terms'] = true | |
# Use latest stable release of ZooKeeper as of 16 January 2017. | |
default['zookeeper-cluster']['service']['version'] = '3.4.9' | |
# Note: https://supermarket.chef.io/cookbooks/libartifact requires a SHA-256 hash. | |
# Run shasum -a 256 zookeeper-3.4.9.tar.gz to determin the correct checksum. | |
default['zookeeper-cluster']['service']['binary_checksum'] = 'e7f340412a61c7934b5143faef8d13529b29242ebfba2eba48169f4a8392f535' |
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
# Install and configure ZooKeeper | |
bag = data_bag_item('configs', 'zookeeper')['glab'] | |
node.default['zookeeper-cluster']['config']['instance_name'] = node['fqdn'] | |
node.default['zookeeper-cluster']['config']['ensemble'] = bag | |
include_recipe 'zookeeper-cluster::default' |
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
name 'zookeeper_virtlab' | |
maintainer 'Gaston Gonzalez' | |
maintainer_email 'you@example.com' | |
license 'apachev2' | |
description 'Installs/Configures zookeeper_virtlab' | |
long_description 'Installs/Configures zookeeper_virtlab' | |
version '0.1.0' | |
# If you upload to Supermarket you should set this so your cookbook | |
# gets a `View Issues` link |
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
source 'https://supermarket.chef.io' | |
# A community cookbook for Apache ZooKeeper Cluster | |
cookbook 'zookeeper-cluster', '~> 1.3.2' | |
# My wrapper cookbook for a ZooKeeper community book | |
cookbook 'zookeeper_virtlab', path: './site-cookbooks/zookeeper_virtlab' |
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
#!/bin/bash | |
# | |
# Author : Gaston Gonzalez | |
# Date : 13 January 2017 | |
# Description : A script to monitor dispatcher changes. | |
# | |
# This script should be invoked via the UNIX 'watch' command. The example below will | |
# monitor for changes every 30 seconds. Simply change the -n parmater value to the | |
# desired number of seconds to wait between checks. | |
# |
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
Vagrant.configure('2') do |config| | |
config.ssh.private_key_path = '/Users/gaston/vagrant-keys/vagrant' | |
config.vm.hostname = 'centos7-proxmox' | |
config.vm.provider :proxmox do |proxmox| | |
# Useful for debugging unencrypted request/response with stunnel+Wireshark | |
#proxmox.endpoint = 'http://localhost:8006/api2/json' | |
proxmox.endpoint = 'https://192.168.5.110:8006/api2/json' | |
proxmox.user_name = 'vagrant@pve' |
NewerOlder