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
# references | |
# http://wiki.opscode.com/display/chef/Chef+Repository | |
# http://blog.ibd.com/howto/deploy-wordpress-to-amazon-ec2-micro-instance-with-opscode-chef/ | |
# on laptop | |
$ sudo gem install chef | |
$ sudo gem install net-ssh net-ssh-multi highline fog | |
$ mkdir ~/git | |
$ cd ~/git |
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
AIR PRICES: | |
• Compressed Air or CO2 | |
• One fill $5.00 (any size tank) | |
• Unlimited fills $10.00 (must be playing at facility) | |
We have compressed air available, up to 4500 psi* | |
*No Scubas are allowed on premises or in parking lot* | |
PAINT PRICES: | |
*Paintballs: |
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
include Chef::Mixin::Command | |
action :create do | |
size = new_resource.size | |
volumes = new_resource.volumes.times.map{|i| (i == 0 ? "/dev/sdf" : "/dev/sdf#{i}") } | |
setra = new_resource.blockdev_setra | |
volume_group = new_resource.volume_group | |
logical_volume = new_resource.name | |
mdadm_device = new_resource.mdadm_device | |
mount_point = new_resource.mount_point |
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
include Opscode::Aws::Ec2 | |
#Auto locates and attached ebs devices based on the data bag they reside in. The following test cases need to be performed | |
# Create multiple resources with new node: PASS | |
# | |
# Re-attach multiple resources after a reboot: PASS | |
# | |
# Create resources across 2 runs. First run creates first raid set, second run re-attaches then creates: PASS | |
# |
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
pool_members_search = search(:node, "roles:loadbalancer AND chef_environment:#{node.chef_environment}") | |
pool_members = pool_members_search.map { |ip| ip[:ipaddress] } |
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
currentdir = File.dirname(FILE_) | |
sys_user = ENV["USER"] | |
log_level :info | |
log_location STDOUT | |
node_name sys_user | |
client_key "#{ENV["HOME"]}/.chef/#{ENV["KNIFE_ENV"]}/#{ENV["USER"]}.pem" | |
validation_client_name "chef-validator" | |
validation_key "#{ENV["HOME"]}/.chef/#{ENV["KNIFE_ENV"]}/validator.pem" |
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
# Cookbook Name:: jenkins | |
# Recipe:: default | |
# Copyright 2012, Lookout Inc. | |
# All rights reserved - Do Not Redistribute | |
include_recipe("apt") | |
apt_repository "jenkins" do | |
uri "http://pkg.jenkins-ci.org/debian" | |
components ["binary"] |
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/env ruby | |
# Wrapper file for smoke check for Pingdom Dashboard | |
require 'rubygems' | |
pwd = File.dirname(File.expand_path(__FILE__)) | |
file = pwd + '/smoke-check.rb' | |
# Path of the WWW page for Pingdom status check |
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
^Z | |
[1]+ Stopped rsync -avz /mnt/[redacted]/mysql-backup/2013-05-22_17-27-15/ server:/mnt/das0/mysql-backup/ | |
deployer@server:~$ bg | |
[1]+ rsync -avz /mnt/server/mysql-backup/2013-05-22_17-27-15/ server:/mnt/das0/mysql-backup/ & | |
deployer@server:~$ jobs | |
[1]+ Running rsync -avz /mnt/server/mysql-backup/2013-05-22_17-27-15/ server:/mnt/das0/mysql-backup/ & | |
deployer@server:~$ disown 1 | |
-bash: disown: 1: no such job | |
deployer@server:~$ disown %1 | |
deployer@server:~$ jobs |
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
1. Bare repo lives as a bare repo hosted up by #{web_server} in /srv/nagios.git | |
2. Clone it over to /etc/nagios3 | |
3. Write a script to make magical git pull --rebase origin master and merge local changes with commits | |
4. Does a verbose check of nagios configs and halts script if 1 not 0. | |
5. Happiness in nagios configs after -v restart it. |
OlderNewer