Public Gists by adamhjk

Gravatar
Tue Nov 24 13:42:37 -0800 2009
1
2
3
#
# Author:: Adam Jacob (<adam@opscode.com>)
# Copyright:: Copyright (c) 2008 Opscode, Inc.
Gravatar
Tue Nov 24 13:37:41 -0800 2009
1
2
3
#
# Author:: Adam Jacob (<adam@opscode.com>)
# Copyright:: Copyright (c) 2008 Opscode, Inc.
Gravatar
Thu Nov 19 15:55:00 -0800 2009
1
2
3
# First recipe
 
execute "pkgsync" do
Gravatar
Thu Nov 19 14:09:50 -0800 2009
1
2
3
link "/etc/pure-ftpd/auth/70puredb" do
to "../conf/PureDB"
notifies :restart, resources(:service => "pure-ftpd")
Gravatar
Thu Nov 19 10:41:09 -0800 2009
1
2
3
#
# Cookbook Name:: apt_packages_ccu
# Recipe:: default
Gravatar
Tue Nov 17 14:38:02 -0800 2009
1
2
3
# cookbook/ftp_stuff/definitions/ftp_user.rb
define :ftp_user, :password => nil do
  begin
Gravatar
Mon Nov 16 14:44:04 -0800 2009
1
2
3
# returns [ recipes, default_attrs, override_attrs ]
expando = run_list.expand('server')
# recipes is just an array
Gravatar
Fri Nov 13 13:32:20 -0800 2009
1
2
3
require 'merb-core'
require 'chef'
 
Gravatar
Fri Nov 13 13:29:59 -0800 2009
1
2
3
require 'rubygems'
require 'merb-core'
require 'chef'
Gravatar
Wed Nov 11 16:52:05 -0800 2009
1
2
3
# Create the group at compile time, so that you can have the gid available to
# pass to the user at creation
g = group "foo" do
Gravatar
Wed Nov 11 16:09:56 -0800 2009
1
2
3
# Create the group at compile time, so that you can have the gid available to
# pass to the user at creation
g = group "foo" do
Gravatar
Wed Nov 11 16:07:02 -0800 2009
1
2
3
# Create the group at compile time, so that you can have the gid available to
# pass to the user at creation
g = group "foo" do
Gravatar
Wed Nov 11 16:03:14 -0800 2009
1
2
3
r = resources(:group => "foo")
r.load_current_resource
 
Gravatar
Wed Nov 11 16:02:29 -0800 2009
1
2
3
r = resources(:group => "foo")
r.load_current_resource
 
Gravatar
Sat Nov 07 11:48:01 -0800 2009
1
2
3
    ## Then, deploy
    deploy_revision app['id'] do
      revision app['revision'][node.app_environment]
Gravatar
Wed Nov 04 21:00:34 -0800 2009
1
2
3
diff --git a/chef/lib/chef/provider/git.rb b/chef/lib/chef/provider/git.rb
index 9da744c..d77b858 100644
--- a/chef/lib/chef/provider/git.rb
Gravatar
Mon Nov 02 16:01:10 -0800 2009
1
2
3
          solr_base = File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "..", "..", "solr"))
 
          # Create the Jetty container
Gravatar
Wed Oct 28 13:56:35 -0700 2009
1
2
3
# Chef Client Config File
 
require 'ohai'
Gravatar
Tue Oct 27 19:14:25 -0700 2009
1
2
3
#
# Author:: Nathan Haneysmith <nathan@opscode.com>
# Cookbook Name:: opscode-account
Gravatar
Thu Oct 22 16:53:20 -0700 2009
1
2
3
require 'chef'
require 'chef/config'