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
# --------------------------------------------- | |
# | |
# Example boto config file. | |
# Per user = ~/.boto | |
# Global = /etc/boto.cfg | |
# | |
# See also: | |
# http://code.google.com/p/boto/wiki/BotoConfig | |
# http://boto.cloudhackers.com | |
# --------------------------------------------- |
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
from fabric.api import * | |
""" | |
Base configuration | |
""" | |
env.project_name = '$(project)' | |
env.database_password = '$(db_password)' | |
env.site_media_prefix = "site_media" | |
env.admin_media_prefix = "admin_media" | |
env.newsapps_media_prefix = "na_media" |
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
====================================================== | |
Setting up Django using Apache/mod_wsgi on Ubuntu 8.10 | |
====================================================== | |
This article will cover setting up Django using Apache/mod_wsgi on Ubuntu | |
8.10. The article is targeted at a production environment, but keep in mind | |
this is a more generalized environment. You may have different requirements, | |
but this article should at least provide the stepping stones. | |
The article will use distribution packages where nesscary. As of 8.10 the |
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
# | |
# Multi-stage Capistrano Example | |
# | |
# Example calls: cap dev deploy, cap prod deploy | |
# Env specific data defined in deploy/dev, deploy/prod | |
# | |
# Required gems: capistrano, capistrano-ext, rubygems, cloudfiles | |
# | |
require 'capistrano/ext/multistage' |
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
source "http://rubygems.org" | |
gem 'chef', '0.10.4' | |
gem 'capistrano', '2.9.0' | |
gem 'capistrano-ext', '1.2.1' | |
gem 'capistrano-chef' |
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 is an example of a knife.rb configuration that uses yml and a | |
# simple env var (CHEF_ENV) to manage multiple hosted Chef environments. | |
# | |
# Example usage: | |
# export CHEF_ENV=evnironment_01 | |
# knife status | |
# | |
# Based on: http://blog.blankpad.net/2010/09/28/multiple-knife-environments---the-return/ | |
# |
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 only seems to happen if I attempt to override the passenger version in a role or environment while bootstrapping. If I add the overrides after the bootstrap completes successfully, the block gets executed successfully. | |
Block in recipe: | |
gem_package "passenger" do | |
version node[:nginx][:passenger_version] | |
notifies :run, resources(:bash => "compile_nginx_source") | |
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
cookbook_paths: | |
- ./cookbooks/ | |
recipes: | |
- pivotal_workstation::create_var_chef_cache | |
- pivotal_workstation::java | |
- pivotal_workstation::git_config_global_defaults | |
- pivotal_workstation::gem_no_rdoc_no_ri | |
- pivotal_workstation::bash_profile-better_history | |
- pivotal_workstation::bash_profile-aliases | |
- pivotal_workstation::bash_profile-ps1 |
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 | |
require 'scout_api' | |
#************************************* | |
# Playing around with the Scout API... | |
#************************************* | |
#Create the connection object. | |
scout = Scout::Account.new(ENV['SCOUT_ACCOUNT'], ENV['SCOUT_USER'], ENV['SCOUT_PASSWORD']) |
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 bash | |
# Oneliner to remove all gems. | |
# See: http://stackoverflow.com/questions/15100496/uninstalling-all-gems-ruby-2-0-0 | |
for i in `gem list --no-versions`; do gem uninstall -aIx $i; done |
OlderNewer