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
knife cookbook site vendor application | |
knife cookbook site vendor apt | |
knife cookbook site vendor git | |
knife cookbook site vendor haproxy | |
knife cookbook site vendor mongodb | |
knife cookbook site vendor users |
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
{ | |
"groups": "sysadmin", | |
"ssh_keys": "ssh-rsa AAAAB3Nz...", | |
"id": "your_name", | |
"shell": "/bin/bash" | |
} |
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
Instance ID: i-48b83b28 | |
Flavor: m1.small | |
Image: ami-7000f019 | |
Region: us-east-1 | |
Availability Zone: us-east-1a | |
Security Groups: single_instance_production | |
SSH Key: ampms | |
Root Device Type: instance-store | |
Public DNS Name: ec2-50-19-193-102.compute-1.amazonaws.com | |
Public IP Address: 50.19.193.102 |
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
bash -c ' if [ ! -f /usr/local/bin/chef-client ]; then apt-get update sudo apt-get install -y build-essential zlib1g zlib1g-dev openssl libssl-dev cd /tmp wget ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.2-p290.tar.gz tar xvf ruby-1.9.2-p290.tar.gz cd ruby-1.9.2-p290 ./configure make | |
sudo make install | |
sudo gem update --system | |
gem update | |
gem install ohai --no-rdoc --no-ri --verbose | |
gem install chef --no-rdoc --no-ri --verbose <%= bootstrap_version_string %>; | |
fi mkdir -p /etc/chef ( cat <<'EOP' <%= validation_key %> EOP ) %> /tmp/validation.pem | |
awk NF /tmp/validation.pem > /etc/chef/validation.pem | |
rm /tmp/validation.pem ( cat <<'EOP' <%= config_content %> EOP ) > /etc/chef/client.rb ( cat <<'EOP' <%= { "run_list" => @run_list }.to_json %> EOP ) > /etc/chef/first-boot.json /usr/local/bin/chef-client -j /etc/chef/first-boot.json' |
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
{ | |
"id": "rails_demo", | |
"server_roles": [ | |
"rails_demo" | |
], | |
"type": { | |
"rails_demo": [ | |
"rails", | |
"unicorn" | |
] |
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
name "base" | |
description "Base role applied to all nodes." | |
run_list( "recipe[users::sysadmins]", "recipe[sudo]", "recipe[apt]", "recipe[git]" ) | |
override_attributes( :authorization => { :sudo => { :users => ["your_name"], :passwordless => 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
export ORGNAME=your_org | |
export OPSCODE_USER=your_name | |
export AWS_ACCESS_KEY_ID=your_key | |
export AWS_SECRET_ACCESS_KEY=your_secret_key | |
export AWS_SSH_KEY_ID=name_of_your_amazon_pub_key_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
current_dir = File.dirname(__FILE__) | |
user = ENV['OPSCODE_USER'] | |
log_level :info | |
log_location STDOUT | |
node_name user | |
client_key "#{ENV['HOME']}/.chef/#{user}.pem" | |
validation_client_name "#{ENV['ORGNAME']}-validator" | |
validation_key "#{ENV['HOME']}/.chef/#{ENV['ORGNAME']}-validator.pem" | |
chef_server_url "https://api.opscode.com/organizations/#{ENV['ORGNAME']}" | |
cache_type 'BasicFile' |
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
// Inline Labels | |
// -------------------------------------------------- // | |
$('input, textarea').each(function() { | |
var self = $(this), | |
label = $("label[for='" + self.attr("id") + "']").text(); | |
// Replace initial values | |
if (!self.val().replace(/^\s+/g, "").length) { |
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
warn: Creating new snapshot for version 0.1.0-5 | |
info: Done creating snapshot 0.1.0-5 | |
info: Updating application Tweetlibs | |
info: Activating snapshot 0.1.0-5 for Tweetlibs | |
info: Stopping app Tweetlibs | |
info: App Tweetlibs is now stopped | |
info: Starting app Tweetlibs | |
error: Error running command deploy | |
error: Nodejitsu Error (500): Internal Server Error | |
error: There was an error while attempting to deploy your application. |