This file contains hidden or 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
[Librarian] Scheduling collectd (>= 0) <http://community.opscode.com/api/v1> | |
[Librarian] Scheduling collectd_plugins (>= 0) <http://community.opscode.com/api/v1> | |
[Librarian] Scheduling collectd (>= 0) <https://github.com/agoddard/collectd-cookbook#ae31704731f06b89def62ed1c1ce40892e95dcf9> | |
[Librarian] Scheduling collectd_plugins (>= 0) <http://community.opscode.com/api/v1> | |
[Librarian] Resolving collectd (>= 0) <http://community.opscode.com/api/v1> | |
[Librarian] Caching http://community.opscode.com/api/v1/cookbooks/collectd | |
[Librarian] Caching http://community.opscode.com/api/v1/cookbooks/collectd/versions/1_0_0 | |
[Librarian] Checking collectd/1.0.0 <http://community.opscode.com/api/v1> | |
[Librarian] Resolving collectd_plugins (>= 0) <http://community.opscode.com/api/v1> | |
[Librarian] Caching http://community.opscode.com/api/v1/cookbooks/collectd_plugins |
This file contains hidden or 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 | |
# | |
# Set our bash prompt according to the branch/status of the current git | |
# repository. | |
# | |
# Forked from http://gist.github.com/31934 | |
RED="\[\033[0;31m\]" | |
YELLOW="\[\033[0;33m\]" | |
GREEN="\[\033[0;32m\]" |
This file contains hidden or 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
path.conf: /etc/elasticsearch | |
path.data: /var/db/elasticsearch | |
path.work: /tmp | |
path.logs: /var/log/elasticsearch | |
bootstrap.mlockall: true |
This file contains hidden or 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
hosts = search(:node, "*:*") | |
domains = {} | |
hosts.each do |node| | |
unless node.domain.nil? | |
domains[node.domain.to_sym] = [] if domains[node.domain.to_sym].nil? | |
domains[node.domain.to_sym] << {node.fqdn => node.ipaddress} | |
end | |
end |
This file contains hidden or 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
# | |
# Denali's No-Knead Miracle Bread | |
# | |
require 'cast_iron_dutch_oven' # sudo gem install dutch_oven --version 3.5 Quart --source KitchenwaresStore | |
require 'mixing_bowl' | |
require 'spatula' | |
desc "Step 1. To be performed at night" | |
task(:at_night) do |
This file contains hidden or 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
==> /var/log/rabbitmq/rabbit.log <== | |
==> /var/log/rabbitmq/rabbit.log.1 <== | |
=INFO REPORT==== 23-Apr-2012::19:54:16 === | |
Memory limit set to 400MB. | |
=INFO REPORT==== 23-Apr-2012::19:54:16 === | |
Rolling persister log to "/var/lib/rabbitmq/mnesia/rabbit/rabbit_persister.LOG.previous" |
This file contains hidden or 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/env python | |
def host_groups_to_knife(hosts_config, output_file="knife_commands.sh"): | |
"""Converts Nagios hosts config to knife role from file commands.""" | |
file = open(hosts_config, 'r') | |
output = "#!/bin/bash\n" | |
for line in file: |
This file contains hidden or 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::Config.run do |config| | |
config.vm.provision :chef_client do |chef| | |
chef.environment = "staging" | |
end | |
end |
OlderNewer