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
| worker_processes 1; | |
| user nobody nogroup; | |
| pid /tmp/nginx.pid; | |
| error_log /tmp/nginx.error.log; | |
| events { | |
| worker_connections 1024; | |
| accept_mutex off; | |
| } |
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
| root@li268-160:/tmp/rubygems-1.3.7# gem install ohai --no-rdoc --no-ri --verbose | |
| GET http://rubygems.org/latest_specs.4.8.gz | |
| 302 Found | |
| GET http://production.s3.rubygems.org/latest_specs.4.8.gz | |
| 200 OK | |
| GET http://rubygems.org/specs.4.8.gz | |
| 302 Found | |
| GET http://production.s3.rubygems.org/specs.4.8.gz | |
| 200 OK | |
| ERROR: While executing gem ... (ArgumentError) |
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
| app = node.run_state[:current_app] | |
| use_ree = false | |
| if node.run_state[:seen_recipes].has_key?("ruby_enterprise") | |
| use_ree = true | |
| end | |
| if app['packages'] | |
| app['packages'].each do |pkg,ver| | |
| package pkg 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
| if app['migrate'][node.app_environment] && node[:apps][app['id']][node.app_environment][:run_migrations] | |
| migrate true | |
| cmd = ::File.join("python", app['id'], app['migration_command']) | |
| migration_command #{cmd} | |
| else | |
| migrate false | |
| 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
| user app['owner'] do | |
| home "#{app['deploy_to']}" | |
| shell "/bin/bash" | |
| end | |
| directory app['deploy_to'] do | |
| owner app['owner'] | |
| group app['group'] | |
| mode '0755' | |
| recursive 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
| [Wed, 19 Jan 2011 17:08:25 +0000] DEBUG: Loading plugin os | |
| [Wed, 19 Jan 2011 17:08:25 +0000] DEBUG: Loading plugin kernel | |
| [Wed, 19 Jan 2011 17:08:25 +0000] DEBUG: Loading plugin ruby | |
| [Wed, 19 Jan 2011 17:08:25 +0000] DEBUG: Loading plugin languages | |
| [Wed, 19 Jan 2011 17:08:25 +0000] DEBUG: ---- Begin ruby -e "require 'rbconfig'; puts %Q(host=#{::Config::CONFIG['host']},host_vendor=#{::Config::CONFIG['host_vendor']},release_date=#{RUBY_RELEASE_DATE},platform=#{RUBY_PLATFORM},ruby_bin=#{::File.join(::Config::CONFIG['bindir'], ::Config::CONFIG['ruby_install_name'])},target_cpu=#{::Config::CONFIG['target_cpu']},bin_dir=#{::Config::CONFIG['bindir']},host_os=#{::Config::CONFIG['host_os']},target=#{::Config::CONFIG['target']},target_vendor=#{::Config::CONFIG['target_vendor']},version=#{RUBY_VERSION},target_os=#{::Config::CONFIG['target_os']},host_cpu=#{::Config::CONFIG['host_cpu']},)" STDOUT ---- | |
| [Wed, 19 Jan 2011 17:08:25 +0000] DEBUG: host=i486-pc-linux-gnu,host_vendor=pc,release_date=2010-01-10,platform=i486-linux |
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
| ree-1.8.7-2010.02 > item.destroy | |
| [Sat, 22 Jan 2011 23:34:38 +0000] WARN: HTTP Request Returned 404 Not Found: Cannot load data bag users item data_bag_item_users_cucumber2 | |
| Net::HTTPServerException: 404 "Not Found" | |
| from /Users/stephen/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/net/http.rb:2103:in `error!' | |
| from /Users/stephen/.rvm/gems/ree-1.8.7-2010.02/gems/chef-0.9.12/lib/chef/rest.rb:233:in `api_request' | |
| from /Users/stephen/.rvm/gems/ree-1.8.7-2010.02/gems/chef-0.9.12/lib/chef/rest.rb:284:in `retriable_rest_request' | |
| from /Users/stephen/.rvm/gems/ree-1.8.7-2010.02/gems/chef-0.9.12/lib/chef/rest.rb:214:in `api_request' | |
| from /Users/stephen/.rvm/gems/ree-1.8.7-2010.02/gems/chef-0.9.12/lib/chef/rest.rb:116:in `delete_rest' | |
| from /Users/stephen/.rvm/gems/ree-1.8.7-2010.02/gems/chef-0.9.12/lib/chef/data_bag_item.rb:181:in `destroy' | |
| from (irb):17 |
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
| root@ip-10-227-54-11:/home/stephen/git_server_checker# cucumber | |
| Feature: Git server checker verifies repository can be used by opseng developers | |
| In order to demonstrate that my git cookbook sets up a git repo correctly | |
| As an infrastructure developer | |
| I want to be able to verify the results of a chef run by creating the repo and using it | |
| Scenario: checker unable to clone a repository # features/git_server_checker.feature:7 | |
| Given I have a workstation with git and a private key installed # features/step_definitions/git_server_checker_steps.rb:122 | |
| And given that no remote git server has been set up # features/step_definitions/git_server_checker_steps.rb:127 |
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
| users = search(:users, "repos:*") | |
| shared_repos = search(:git_repos, "url:*") | |
| users.each do |u| | |
| username = u['id'] | |
| if u.has_key?("git_key") | |
| template("/home/#{username}/.ssh/config") do | |
| source "git-ssh-config.erb" | |
| owner username |
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
| users = search(:users, "repos:*") | |
| shared_repos = search(:git_repos, "url:*") | |
| users.each do |u| | |
| username = u['id'] | |
| u["repos"].each do |target, repo| | |
| git "/home/#{username}/#{target}" do | |
| repository repo['repo'] |