This repository has been archived by the owner on Jul 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1 parent
2f98d03
commit 9117329
Showing
13 changed files
with
105 additions
and
72 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,22 @@ | ||
# | ||
# Cookbook Name:: rubygems-metrics | ||
# Recipe:: default | ||
# | ||
|
||
include_recipe 'chef-vault' | ||
|
||
librato_creds = ChefVault::Item.load('librato', 'credentials') | ||
librato_creds = chef_vault_item('librato', 'credentials') | ||
|
||
node.default['collectd_librato']['email'] = librato_creds['email'] | ||
node.default['collectd_librato']['api_token'] = librato_creds['token'] | ||
|
||
include_recipe "collectd" | ||
include_recipe "collectd-librato" | ||
include_recipe 'collectd' | ||
include_recipe 'collectd-librato' | ||
|
||
include_recipe "collectd_plugins::cpu" | ||
include_recipe "collectd_plugins::df" | ||
include_recipe "collectd_plugins::disk" | ||
include_recipe "collectd_plugins::interface" | ||
include_recipe "collectd_plugins::memory" | ||
include_recipe "collectd_plugins::swap" | ||
include_recipe "collectd_plugins::syslog" | ||
include_recipe 'collectd_plugins::cpu' | ||
include_recipe 'collectd_plugins::df' | ||
include_recipe 'collectd_plugins::disk' | ||
include_recipe 'collectd_plugins::interface' | ||
include_recipe 'collectd_plugins::memory' | ||
include_recipe 'collectd_plugins::swap' | ||
include_recipe 'collectd_plugins::syslog' |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
home = "/home/samkottler" | ||
home = '/home/samkottler' | ||
|
||
directory "#{home}/src" do | ||
owner "samkottler" | ||
group "samkottler" | ||
owner 'samkottler' | ||
group 'samkottler' | ||
end | ||
|
||
package "tmux" do | ||
package 'tmux' do | ||
action :install | ||
end | ||
|
||
git "#{home}/src/dotfiles" do | ||
repository "https://github.com/skottler/dotfiles" do | ||
revision "master" | ||
checkout_branch "master" | ||
repository 'https://github.com/skottler/dotfiles' do | ||
revision 'master' | ||
checkout_branch 'master' | ||
action :sync | ||
user "samkottler" | ||
user 'samkottler' | ||
end | ||
end | ||
|
||
%w{ .gitconfig .pryrc .tmux.conf .gemrc .ackrc }.each do |file| | ||
%w( .gitconfig .pryrc .tmux.conf .gemrc .ackrc ).each do |file| | ||
link "#{home}/#{file}" do | ||
to "#{home}/src/dotfiles/#{file}" | ||
end | ||
end | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
include_recipe "rubygems" | ||
# | ||
# Cookbook Name:: rubygems-redis | ||
# Recipe:: default | ||
# | ||
|
||
include_recipe "redisio::install" | ||
include_recipe "redisio::enable" | ||
include_recipe 'rubygems' | ||
|
||
include_recipe 'redisio::install' | ||
include_recipe 'redisio::enable' |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,25 @@ | ||
librato_creds = ChefVault::Item.load("librato", "credentials") | ||
# | ||
# Cookbook Name:: rubygems-sensu | ||
# Recipe:: librato | ||
# | ||
|
||
template "/etc/sensu/librato-metrics.json" do | ||
source "librato-metrics.json.erb" | ||
path "/etc/sensu/librato-metrics.json" | ||
owner "sensu" | ||
group "sensu" | ||
include_recipe 'chef-vault' | ||
|
||
librato_creds = chef_vault_item('librato', 'credentials') | ||
|
||
template '/etc/sensu/librato-metrics.json' do | ||
source 'librato-metrics.json.erb' | ||
path '/etc/sensu/librato-metrics.json' | ||
owner 'sensu' | ||
group 'sensu' | ||
variables( | ||
email: librato_creds['email'], | ||
api_key: librato_creds['token'] | ||
) | ||
end | ||
|
||
cookbook_file "/etc/sensu/handlers/librato-metrics.rb" do | ||
path "/etc/sensu/handlers/librato-metrics.rb" | ||
source "librato-metrics.rb" | ||
cookbook_file '/etc/sensu/handlers/librato-metrics.rb' do | ||
path '/etc/sensu/handlers/librato-metrics.rb' | ||
source 'librato-metrics.rb' | ||
action :create | ||
end |
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
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