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
#-- | |
# Author:: Daniel DeLeo (<[email protected]>) | |
# Author:: John Keiser (<[email protected]>) | |
# Copyright:: Copyright (c) 2011 Opscode, Inc. | |
# License:: Apache License, Version 2.0 | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# |
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
#-- | |
# Author:: Daniel DeLeo (<[email protected]>) | |
# Author:: John Keiser (<[email protected]>) | |
# Copyright:: Copyright (c) 2011 Opscode, Inc. | |
# License:: Apache License, Version 2.0 | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# |
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": "test2", | |
"default_attributes": { | |
"firewall": { | |
"rules": [ | |
{ | |
"25": { "port": "25", "protocol": "tcp" } | |
} | |
] | |
} |
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 ec2 server create -G default -I ami-61be7908 -f m1.small \ | |
-S schisamo -x ubuntu -d ubuntu10.04-ruby192 |
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
provides "gamespy" | |
require_plugin "kernel" | |
require_plugin "network" | |
def get_ip_address(name, eth) | |
network[:interfaces][eth][:addresses].each do |key, info| | |
gamespy[name] = key if info['family'] == 'inet' | |
end | |
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
i = gem_package "sys-proctable" do | |
action :nothing | |
end | |
i.run_action(:install) | |
require 'rubygems' | |
Gem.clear_paths | |
require 'sys/proctable' | |
Rackspace.is_proc("deployment.*sh", 300) |
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
require 'timeout' | |
include Rackspace::Proc | |
define :wait_on_proc, :timeout_sec => 60 do | |
include_recipe "rackspace" | |
begin | |
Timeout::timeout(params[:timeout_sec]) do | |
while getProcPid(params[:name]) | |
sleep(5) | |
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
include_recipe "git" | |
node.run_state[:applications] = [] | |
search(:apps) do |app| | |
(app["server_roles"] & node.run_list.roles).each do |app_role| | |
node.run_state[:applications] << {:app => app, :recipes => app["type"][app_role]} | |
end | |
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
# this file is controlled by Chef | |
# feel free to copy it to your ~/.tmux.conf | |
unbind C-a | |
set -g prefix C-a | |
bind C-a send-prefix | |
set -g default-terminal screen-256color | |
setw -g xterm-keys on | |
set -g status-utf8 on |
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
# Before running vagrant, export the shell variable for the organization on the platform and make sure | |
# the validator certificate is in ~/.chef. | |
# | |
# export ORGNAME=your_platform_organization | |
Vagrant::Config.run do |config| | |
config.vm.box = "lucid64" | |
config.vm.provisioner = :chef_server | |
# Set up some organization specific values based on environment variable above. |
NewerOlder