Skip to content

Instantly share code, notes, and snippets.

View jgerry's full-sized avatar

Jason Gerry jgerry

  • Atlanta, GA, USA
View GitHub Profile
" don't worry about trying to stick to vi/ex conventions
set nocompatible
" vim-plug config
call plug#begin('~/.config/nvim/bundle')
" Plug 'ctrlpvim/ctrlp.vim'
Plug 'hashivim/vim-terraform'
" Plug 'hashivim/vim-hashicorp-tools'
" Plug 'vim-syntastic/syntastic'
Plug 'w0rp/ale'
2016/10/24 14:46:00.924125 [INFO] consul-template v0.16.0
2016/10/24 14:46:00.924139 [INFO] (runner) creating new runner (dry: false, once: false)
2016/10/24 14:46:00.924349 [DEBUG] (runner) final config (tokens suppressed):
{
"Path": "consul-template-2.conf",
"Consul": "<redacted>:8500",
"Token": "<redacted>",
"ReloadSignal": 1,
"DumpSignal": 3,

Keybase proof

I hereby claim:

  • I am jgerry on github.
  • I am jgerry (https://keybase.io/jgerry) on keybase.
  • I have a public key whose fingerprint is B09E 4E93 B4E2 A99D 10B9 6FB2 DC29 7429 5D57 9E22

To claim this, I am signing this object:

@jgerry
jgerry / elasticsearch.yml
Created December 15, 2015 15:09
elasticsearch.yml
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# THIS FILE IS MANAGED BY CHEF, DO NOT EDIT MANUALLY, YOUR CHANGES WILL BE OVERWRITTEN!
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# See the source file for context and more information:
# <https://github.com/elastic/elasticsearch/blob/master/core/config/elasticsearch.yml>
#
# See the documentation for further information on configuration options:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/setup-configuration.html>
#
@jgerry
jgerry / logging.yml
Created December 15, 2015 15:08
elasticsearch logging.yml
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# THIS FILE IS MANAGED BY CHEF, DO NOT EDIT MANUALLY, YOUR CHANGES WILL BE OVERWRITTEN!
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# See the source file for context and more information:
# <https://github.com/elastic/cookbook-elasticsearch/blob/master/templates/default/logging.yml.erb>
#
# You may also supply your own template to the elasticsearch cookbook's
# elasticsearch_configure resource using the template_logging_yml and cookbook_logging_yml
# parameters defined here:
Generated at 2015-06-19 15:29:47 +0000
Net::HTTPServerException: 404 "Not Found"
/opt/aws/opsworks/local/lib/ruby/2.0.0/net/http/response.rb:119:in `error!'
/opt/aws/opsworks/releases/20150611173115_3421-20150611173115/vendor/bundle/ruby/2.0.0/gems/chef-11.10.4/lib/chef/http.rb:174:in `streaming_request'
/opt/aws/opsworks/releases/20150611173115_3421-20150611173115/vendor/bundle/ruby/2.0.0/gems/chef-11.10.4/lib/chef/rest.rb:166:in `streaming_request'
/opt/aws/opsworks/releases/20150611173115_3421-20150611173115/vendor/bundle/ruby/2.0.0/gems/chef-11.10.4/lib/chef/rest.rb:104:in `get'
/opt/aws/opsworks/releases/20150611173115_3421-20150611173115/vendor/bundle/ruby/2.0.0/gems/chef-11.10.4/lib/chef/cookbook/synchronizer.rb:202:in `download_file'
/opt/aws/opsworks/releases/20150611173115_3421-20150611173115/vendor/bundle/ruby/2.0.0/gems/chef-11.10.4/lib/chef/cookbook/synchronizer.rb:180:in `sync_file_in_cookbook'
/opt/aws/opsworks/releases/20150611173115_3421-20150611173115/vendor/bundle/ruby/2.0.0/gems/chef-11.10
@jgerry
jgerry / gist:ca1499019d531f50ccf0
Created October 24, 2014 15:18
Chef resource ordering
# Install the Java 7 JDK
include_recipe "java::default"
# Set up the elasticsearch repository
include_recipe "layer-elasticsearch::repository"
# Install the elasticsearch package
package "elasticsearch" do
version "1.3.4"
end
# apt update first or everything seems to break
execute "apt-get update" do
user "root"
notifies :create, "ruby_block[apt_get_update_run_flag]", :immediately
not_if { node.attribute?("apt_get_update_complete") }
end
ruby_block "apt_get_update_run_flag" do
block do
node.set['apt_get_update_complete'] = true
service "logstash" do
action [ :enable, :start ]
start_command "monit start logstash"
stop_command "monit stop logstash"
end