I hereby claim:
- I am torrancew on github.
- I am torrancew (https://keybase.io/torrancew) on keybase.
- I have a public key ASAx5N1qpU7B2LZ8XUCaCug2DG1fPQGhtuLVi99zGLipbQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
input { | |
file { | |
type => "syslog" | |
path => ["/var/log/secure", "/var/log/messages"] | |
tags => ["syslog"] | |
} | |
pipe { | |
type => "edgecast-logs" | |
command => "zcat /home/edgecast/logs/*.log.gz" |
load 'deploy' if respond_to?(:namespace) | |
require 'rubygems' | |
require 'capistrano' | |
require 'railsless-deploy' | |
load 'config/deploy' | |
load 'config/cap_colors' # Optional; uses the capistrano_colors gem to customize output colorization |
rails_env = ENV['RAILS_ENV'] || 'production' | |
#worker_processes (rails_env == 'production' ? 16 : 4) | |
worker_processes 3 | |
## Load the app before spawning workers | |
#preload_app true | |
# How long to wait before killing an unresponsive worker | |
timeout 30 |
#! /bin/sh | |
exec 2>&1 | |
USER=diaspora | |
ENV_DIR=/etc/diaspora/env | |
DEPLOY_PATH=/usr/local/share/diaspora | |
APP_ROOT=$DEPLOY_PATH/current | |
BUNDLE_PATH=$DEPLOY_PATH/shared/bundle | |
for env_var in PATH GEM_HOME GEM_PATH; do |
root@castle:~# iperf -s -f m | |
------------------------------------------------------------ | |
Server listening on TCP port 5001 | |
TCP window size: 0.08 MByte (default) | |
------------------------------------------------------------ | |
[ 4] local 10.1.10.238 port 5001 connected with 10.1.10.134 port 43477 | |
[ ID] Interval Transfer Bandwidth |
# Copyright (c) 2010-2011, Diaspora Inc. This file is | |
# licensed under the Affero General Public License version 3 or later. See | |
# the COPYRIGHT file. | |
set :config_yaml, YAML.load_file(File.dirname(__FILE__) + '/deploy_config.yml') | |
require './config/cap_colors' | |
require 'bundler/capistrano' | |
require './config/boot' | |
require 'hoptoad_notifier/capistrano' |
module Puppet::Parser::Functions | |
newfunction(:using_module, :type => :rvalue) do |args| | |
included = true | |
modules = lookupvar('kmods').split(/,/) | |
args.each do |mod| | |
unless modules.include?(mod) | |
included = false | |
end | |
end | |
included |
class puppet::configure ($puppet_type = 'agent', $environment = 'production', $confdir = '/etc/puppet', | |
$logdir = '/var/log/puppet', $vardir = '/var/lib/puppet', | |
$rundir = '/var/run/puppet', $ssldir = '/var/lib/puppet/ssl', | |
$storeconfigs = false, $dbadapter = undef, $dbconnections = 3, | |
$dbserver = undef, $dbname = puppet, $dbuser = puppet, $dbpassword = puppet) { | |
include puppet::install | |
$environment_list = [ 'development', 'testing', 'production' ] |
##################################### | |
### Set up the deploy environment ### | |
##################################### | |
# Define the name of the "application" we're deploying | |
set :application, 'puppet-modules' | |
# Define the VCS platform | |
set :scm, :git | |
set :repository, '[email protected]:puppet-modules' |