Public Gists by fujin

Gravatar
Thu Sep 10 20:08:14 -0700 2009
1
2
3
@provider @git @deploy
Feature: Deploy
  In order to repeatably and reliably deploy web apps from a source repository from the comfort of chef
Gravatar
Thu Sep 10 18:15:15 -0700 2009
1
2
3
@provider @git @deploy
Feature: Deploy
  In order to repeatably and reliably deploy web apps from a source repository from the comfort of chef
Gravatar
Thu Sep 10 18:15:05 -0700 2009
1
2
3
--- run stderr:
/opt/local/lib/ruby/gems/1.8/gems/chef-0.7.11/lib/chef/mixin/command.rb:175:in `handle_command_failures': git clone /tmp/chef_integration/../typo/ /tmp/chef_integration/deploy/shared/cached-copy/ returned 128, expected 0 (Chef::Exceptions::Exec)
---- Begin output of git clone /tmp/chef_integration/../typo/ /tmp/chef_integration/deploy/shared/cached-copy/ ----
Gravatar
Mon Sep 07 23:51:40 -0700 2009
1
2
3
class Sed < Plugin
  def listen(m)
    return unless m.source
Gravatar
Sun Sep 06 21:26:16 -0700 2009
1
2
3
sxml.c: In function ‘XMLArraySetCapacity’:
jsxml.c:1061: warning: comparison is always false due to limited range of data type
jsxml.c: In function ‘XMLArrayAddMember’:
Gravatar
Thu Sep 03 23:15:50 -0700 2009
1
2
3
aj@AJ-Christensens-MacBook ~$ sudo couchdb
Apache CouchDB 0.9.1 (LogLevel=debug) is starting.
Configuration Settings ["/opt/local/etc/couchdb/default.ini",
Gravatar
Thu Sep 03 17:53:49 -0700 2009
1
2
3
upstream chef_server {
  server 127.0.0.1:4000;
}
Gravatar
Thu Sep 03 17:52:54 -0700 2009
1
2
3
upstream chef_server {
  server 127.0.0.1:4000;
}
Gravatar
Thu Sep 03 17:52:26 -0700 2009
1
2
3
upstream chef_server {
  server 127.0.0.1:4000;
}
Gravatar
Thu Sep 03 17:11:57 -0700 2009
1
2
3
case platform
when "debian","ubuntu"
  set.nginx.dir = "/etc/nginx"
Gravatar
Mon Aug 31 03:50:47 -0700 2009
1
2
3
aj@AJ-Christensens-MacBook ~/Development/macports$ sudo port install couchdb
---> Computing dependencies for couchdb
---> Building libsdl
Gravatar
Wed Aug 26 23:42:45 -0700 2009
1
2
3
execute "update_furtive" do
  command "git pull"
  cwd "#{node[:furtive][:home]}"
Gravatar
Thu Aug 20 04:26:51 -0700 2009
1
2
3
{
  "chef": {
    "path": "/srv/chef",
Gravatar
Thu Aug 20 01:28:32 -0700 2009
1
2
3
queue_host "localhost"
    queue_password ""
    queue_port 61613
Gravatar
Wed Aug 19 16:44:01 -0700 2009
1
2
3
aj@AJ-Christensens-MacBook ~/Development$ cat cookbooks/test/attributes/default.rb
recipes("test")
#set_unless.chef.server_fqdn "chef.#{domain}"
Gravatar
Mon Aug 17 02:29:29 -0700 2009
1
2
3
# Adds a Dir.glob to Ruby 1.8.5, for compat
if RUBY_VERSION < "1.8.6"
  class Dir
Gravatar
Sat Aug 15 21:32:34 -0700 2009
1
2
3
set.users({
  :bob => {
    :gecos => "Brash Deploy User",
Gravatar
Sat Aug 15 21:17:36 -0700 2009
1
2
3
if run_list.include?("recipe[brash]")
  set[:users]["brash-deploy"] = { "gecos" => "Brash Deploy User", "shell" => "/bin/bash", "home" => "/home/deploy" }
elsif run_list.include?("recipe[psrc]")
Gravatar
Sat Aug 15 21:13:00 -0700 2009
1
2
3
class Chef::Recipe
  def all_users(node=nil, &block)
    node[:users].each do |name, info|
Gravatar
Thu Aug 13 09:38:15 -0700 2009
1
2
3
class Chef::Node
  alias :default :set_unless
end