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
zookeeper_service_name = "lookout-zk" | |
zk_ips = [] | |
log("no OVERRIDE found for zookeeper ips, autodiscovering.") | |
search(:node, "name:#{zookeeper_service_name}-#{mytag}-*").each do |n| | |
zk_ips << "#{n[:ipaddress]}:2181" | |
end | |
log("ZOOKEEPER IPS: #{zk_ips.inspect}") | |
node.override[:kafka][:broker][:zookeeper][:connect] = zk_ips.join(",") |
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
#!/usr/bin/ruby | |
# terraform/lib/terraform.rb | |
require_relative 'aws' | |
$terraform_dir = "/opt/terraform" | |
$terraform_templates = "/opt/terraform_templates" | |
$terraform_bin = "#{$terraform_dir}/terraform" | |
def set_terraform_variables(network_zone, instance_name, cluster_name) |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>author</key> | |
<string>Alex Ross</string> | |
<key>comment</key> | |
<string>Created by Alex Ross</string> | |
<key>name</key> | |
<string>SpaceCadet</string> |
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
<dict> | |
<key>name</key> | |
<string>Embedded Ruby Source</string> | |
<key>scope</key> | |
<string>string source.ruby.embedded.source</string> | |
<key>settings</key> | |
<dict> | |
<key>foreground</key> | |
<string>#D01F1E</string> | |
</dict> |
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
# The various ${var.foo} come from variables.tf | |
# Specify the provider and access details | |
provider "aws" { | |
region = "${var.aws_region}" | |
access_key = "${var.aws_access_key}" | |
secret_key = "${var.aws_secret_key}" | |
} | |
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
2014/10/20 00:23:52 Detected home directory from env var: /root | |
2014/10/20 00:23:52 [DEBUG] Discoverd plugin: aws = /opt/terraform/terraform-provider-aws | |
2014/10/20 00:23:52 [DEBUG] Discoverd plugin: cloudflare = /opt/terraform/terraform-provider-cloudflare | |
2014/10/20 00:23:52 [DEBUG] Discoverd plugin: consul = /opt/terraform/terraform-provider-consul | |
2014/10/20 00:23:52 [DEBUG] Discoverd plugin: digitalocean = /opt/terraform/terraform-provider-digitalocean | |
2014/10/20 00:23:52 [DEBUG] Discoverd plugin: dnsimple = /opt/terraform/terraform-provider-dnsimple | |
2014/10/20 00:23:52 [DEBUG] Discoverd plugin: google = /opt/terraform/terraform-provider-google | |
2014/10/20 00:23:52 [DEBUG] Discoverd plugin: heroku = /opt/terraform/terraform-provider-heroku | |
2014/10/20 00:23:52 [DEBUG] Discoverd plugin: mailgun = /opt/terraform/terraform-provider-mailgun | |
2014/10/20 00:23:52 [DEBUG] Discoverd plugin: null = /opt/terraform/terraform-provider-null |
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
# The various ${var.foo} come from variables.tf | |
# Specify the provider and access details | |
provider "aws" { | |
region = "${var.aws_region}" | |
access_key = "${var.aws_access_key}" | |
secret_key = "${var.aws_secret_key}" | |
} | |
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
[7:02:58] bburton@althalus ~/code/lookout/cookbooks/zk-wrapper kitchen converge | |
-----> Starting Kitchen (v1.2.1) | |
-----> Creating <default-ubuntu-1204>... | |
EC2 instance <i-bf0b2bb4> created. | |
.......................... (server ready) | |
Waiting for 10.32.1.143:22... | |
Waiting for 10.32.1.143:22... | |
(ssh ready)\n | |
Finished creating <default-ubuntu-1204> (0m48.38s). | |
-----> Converging <default-ubuntu-1204>... |
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
"provisioners": [ | |
{ | |
"type": "shell", | |
"script": "{{user `path_to_script`}}" | |
}] |
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
[~/code/lookout/chef-repo]$ ruby -v *[master][ruby-1.9.3-p545@global] | |
ruby 1.9.3p545 (2014-02-24 revision 45159) [x86_64-darwin13.1.0] | |
[~/code/lookout/chef-repo]$ which ruby *[master][ruby-1.9.3-p545@global] | |
/Users/bburton/.rvm/rubies/ruby-1.9.3-p545/bin/ruby | |
[~/code/lookout/chef-repo]$ gem -v *[master][ruby-1.9.3-p545@global] | |
w2.2.2 | |
h% [~/code/lookout/chef-repo]$ which gem *[master][ruby-1.9.3-p545@global] |