deprec 2.2.3 → 3.1.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +1 -1
- data/bin/depify +3 -8
- data/{lib → docs}/deprec_cmd_completion.sh +0 -0
- data/lib/deprec.rb +5 -7
- data/lib/deprec/cap.rb +51 -0
- data/lib/deprec/{callbacks → cap/callbacks}/asset_pipeline.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/aoe.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/apache.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/bash.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/canonical.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/collectd.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/deprec.rb +1 -2
- data/lib/deprec/{recipes → cap/recipes}/deprecated.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/ec2.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/example.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/git.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/haproxy.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/heartbeat.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/logrotate.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/lvm.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/mongrel.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/monit.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/mri.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/mysql.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/nagios.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/nagios3.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/network.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/nginx.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/nrpe.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/ntp.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/passenger.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/php.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/postfix.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/postgresql.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/rack.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/rails.rb +4 -4
- data/lib/deprec/{recipes → cap/recipes}/ree.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/rubygems.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/sqlite.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/ssh.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/ssl.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/stunnel.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/syslog.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/syslog_ng.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/ubuntu.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/users.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/utils.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/xen.rb +0 -0
- data/lib/deprec/{recipes → cap/recipes}/xentools.rb +0 -0
- data/lib/deprec/{templates → cap/templates}/aoe/aoe-init +0 -0
- data/lib/deprec/{templates → cap/templates}/aoe/fence_aoemask +0 -0
- data/lib/deprec/{templates → cap/templates}/apache/CHANGES.txt +0 -0
- data/lib/deprec/{templates → cap/templates}/apache/apache2.conf.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/apache/default.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/apache/namevirtualhosts.conf +0 -0
- data/lib/deprec/{templates → cap/templates}/apache/ports.conf.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/apache/status.conf.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/apache/vhost.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/bash/bash_global +0 -0
- data/lib/deprec/{templates → cap/templates}/collectd/collectd-init.d +0 -0
- data/lib/deprec/{templates → cap/templates}/collectd/collectd.conf.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/deprec/caprc.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/haproxy/haproxy-init.d +0 -0
- data/lib/deprec/{templates → cap/templates}/haproxy/haproxy.cfg.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/heartbeat/authkeys.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/heartbeat/ha.cf.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/heartbeat/haresources.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/logrotate/logrotate.conf.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/mongrel/apache_vhost.conf.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/mongrel/logrotate.conf.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/mongrel/mongrel_cluster-init-script +0 -0
- data/lib/deprec/{templates → cap/templates}/mongrel/mongrel_cluster.yml.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/mongrel/monit.conf.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/mongrel/nginx_vhost.conf.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/monit/monit-init-script +0 -0
- data/lib/deprec/{templates → cap/templates}/monit/monitrc.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/monit/nothing.monitrc +0 -0
- data/lib/deprec/{templates → cap/templates}/mysql/create_databases.sql +0 -0
- data/lib/deprec/{templates → cap/templates}/mysql/database.yml.prod +0 -0
- data/lib/deprec/{templates → cap/templates}/mysql/database.yml.stage +0 -0
- data/lib/deprec/{templates → cap/templates}/mysql/my.cnf.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/mysql/sphinx.conf.prod +0 -0
- data/lib/deprec/{templates → cap/templates}/mysql/sphinx.conf.stage +0 -0
- data/lib/deprec/{templates → cap/templates}/nagios.old/README +0 -0
- data/lib/deprec/{templates → cap/templates}/nagios.old/apache_vhost.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/nagios.old/cgi.cfg.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/nagios.old/check_linux_free_memory.pl +0 -0
- data/lib/deprec/{templates → cap/templates}/nagios.old/check_mongrel_cluster.rb +0 -0
- data/lib/deprec/{templates → cap/templates}/nagios.old/htpasswd.users +0 -0
- data/lib/deprec/{templates → cap/templates}/nagios.old/mrtg.cfg +0 -0
- data/lib/deprec/{templates → cap/templates}/nagios.old/nagios.cfg.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/nagios.old/nrpe.cfg.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/nagios.old/nrpe.xinetd.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/nagios.old/objects/commands.cfg.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/nagios.old/objects/contacts.cfg.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/nagios.old/objects/hosts.cfg.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/nagios.old/objects/localhost.cfg.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/nagios.old/objects/services.cfg.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/nagios.old/objects/timeperiods.cfg.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/nagios.old/resource.cfg.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/nagios/apache2.conf +0 -0
- data/lib/deprec/{templates → cap/templates}/nagios/cgi.cfg +0 -0
- data/lib/deprec/{templates → cap/templates}/nagios/check_linux_free_memory.pl +0 -0
- data/lib/deprec/{templates → cap/templates}/nagios/commands.cfg +0 -0
- data/lib/deprec/{templates → cap/templates}/nagios/conf.d/contacts_nagios2.cfg +0 -0
- data/lib/deprec/{templates → cap/templates}/nagios/conf.d/extinfo_nagios2.cfg +0 -0
- data/lib/deprec/{templates → cap/templates}/nagios/conf.d/generic-host_nagios2.cfg +0 -0
- data/lib/deprec/{templates → cap/templates}/nagios/conf.d/generic-service_nagios2.cfg +0 -0
- data/lib/deprec/{templates → cap/templates}/nagios/conf.d/hostgroups_nagios2.cfg +0 -0
- data/lib/deprec/{templates → cap/templates}/nagios/conf.d/hosts/localhost_nagios2.cfg +0 -0
- data/lib/deprec/{templates → cap/templates}/nagios/conf.d/services_nagios2.cfg +0 -0
- data/lib/deprec/{templates → cap/templates}/nagios/conf.d/timeperiods_nagios2.cfg +0 -0
- data/lib/deprec/{templates → cap/templates}/nagios/host_template.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/nagios/htpasswd.users +0 -0
- data/lib/deprec/{templates → cap/templates}/nagios/nagios.cfg +0 -0
- data/lib/deprec/{templates → cap/templates}/nagios/nrpe.cfg +0 -0
- data/lib/deprec/{templates → cap/templates}/nagios/resource.cfg +0 -0
- data/lib/deprec/{templates → cap/templates}/network/hostname.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/network/hosts.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/network/interfaces.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/network/resolv.conf.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/nginx/logrotate.conf.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/nginx/mime.types.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/nginx/nginx-init-script +0 -0
- data/lib/deprec/{templates → cap/templates}/nginx/nginx.conf.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/nginx/nginx.logrotate.d +0 -0
- data/lib/deprec/{templates → cap/templates}/nginx/nothing.conf +0 -0
- data/lib/deprec/{templates → cap/templates}/nginx/rails_nginx_vhost.conf.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/ntp/ntp.conf.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/passenger/apache_vhost.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/passenger/logrotate.conf.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/passenger/passenger.conf.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/passenger/passenger.load.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/postfix/aliases.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/postfix/dynamicmaps.cf.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/postfix/main.cf.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/postfix/master.cf.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/ssh/ssh_config.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/ssh/sshd_config.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/ssl/make-ssl-cert +0 -0
- data/lib/deprec/{templates → cap/templates}/ssl/ssl-cert-snakeoil.key +0 -0
- data/lib/deprec/{templates → cap/templates}/ssl/ssl-cert-snakeoil.pem +0 -0
- data/lib/deprec/{templates → cap/templates}/stunnel/stunnel.conf-client +0 -0
- data/lib/deprec/{templates → cap/templates}/stunnel/stunnel.conf-orig +0 -0
- data/lib/deprec/{templates → cap/templates}/stunnel/stunnel.conf-server +0 -0
- data/lib/deprec/{templates → cap/templates}/stunnel/stunnel4 +0 -0
- data/lib/deprec/{templates → cap/templates}/stunnel/syslog-server.pem +0 -0
- data/lib/deprec/{templates → cap/templates}/syslog/syslog.conf.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/syslog/syslogd.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/syslog_ng/apache_syslog +0 -0
- data/lib/deprec/{templates → cap/templates}/syslog_ng/syslog-ng.conf-client +0 -0
- data/lib/deprec/{templates → cap/templates}/syslog_ng/syslog-ng.conf-orig +0 -0
- data/lib/deprec/{templates → cap/templates}/syslog_ng/syslog-ng.conf-server +0 -0
- data/lib/deprec/{templates → cap/templates}/xen/network-bridge-wrapper +0 -0
- data/lib/deprec/{templates → cap/templates}/xen/xend-config.sxp.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/xen/xend-init.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/xen/xendomains.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/xentools/15-disable-hwclock +0 -0
- data/lib/deprec/{templates → cap/templates}/xentools/40-setup-networking +0 -0
- data/lib/deprec/{templates → cap/templates}/xentools/xen-tools.conf.erb +0 -0
- data/lib/deprec/{templates → cap/templates}/xentools/xm.tmpl.erb +0 -0
- data/lib/deprec_minus_rails.rb +22 -12
- metadata +178 -212
- data/lib/deprec/TODO.txt +0 -6
- data/lib/deprec/capistrano_extensions.rb +0 -418
- data/lib/deprec/recipes.rb +0 -7
- data/lib/deprec/recipes/ar_sendmail.rb +0 -67
- data/lib/deprec/recipes/chef.rb +0 -68
- data/lib/deprec/recipes/couchdb.rb +0 -107
- data/lib/deprec/recipes/ddclient.rb +0 -51
- data/lib/deprec/recipes/gitosis.rb +0 -55
- data/lib/deprec/recipes/integrity.rb +0 -108
- data/lib/deprec/recipes/memcache.rb +0 -49
- data/lib/deprec/recipes/sphinx.rb +0 -86
- data/lib/deprec/recipes/starling.rb +0 -119
- data/lib/deprec/recipes/svn.rb +0 -12
- data/lib/deprec/recipes/trac.rb +0 -277
- data/lib/deprec/recipes/vmware_tools.rb +0 -15
- data/lib/deprec/recipes/vnstat.rb +0 -85
- data/lib/deprec/recipes/wpmu.rb +0 -103
- data/lib/deprec/recipes_minus_rails.rb +0 -69
- data/lib/deprec/templates/ar_sendmail/logrotate.conf.erb +0 -9
- data/lib/deprec/templates/ar_sendmail/monit.conf.erb +0 -5
- data/lib/deprec/templates/chef/chef.json.erb +0 -1
- data/lib/deprec/templates/chef/solo.rb +0 -2
- data/lib/deprec/templates/ddclient/ddclient.conf.erb +0 -11
- data/lib/deprec/templates/ddclient/ddclient.erb +0 -15
- data/lib/deprec/templates/integrity/apache_vhost.erb +0 -4
- data/lib/deprec/templates/integrity/config.ru.erb +0 -21
- data/lib/deprec/templates/integrity/config.yml.erb +0 -43
- data/lib/deprec/templates/sphinx/monit.conf.erb +0 -5
- data/lib/deprec/templates/starling/monit.conf.erb +0 -14
- data/lib/deprec/templates/starling/starling-init-script.erb +0 -71
- data/lib/deprec/templates/subversion/svn.apache.vhost.erb +0 -43
- data/lib/deprec/templates/trac/apache_vhost.conf.erb +0 -24
- data/lib/deprec/templates/trac/nginx_vhost.conf.erb +0 -26
- data/lib/deprec/templates/trac/trac.ini.erb +0 -169
- data/lib/deprec/templates/trac/trac_deprec.png +0 -0
- data/lib/deprec/templates/trac/tracd-init.erb +0 -43
- data/lib/deprec/templates/trac/users.htdigest.erb +0 -0
- data/lib/deprec/templates/vnstat/config.php +0 -57
- data/lib/deprec/templates/wordpress/apache2_wordpress_vhost.conf.erb +0 -31
- data/lib/deprec/templates/wordpress/wp-config.php.erb +0 -31
- data/lib/deprec/templates/wpmu/apache_vhost.conf.erb +0 -13
- data/lib/vmbuilder_plugins/all.rb +0 -20
- data/lib/vmbuilder_plugins/apt.rb +0 -93
- data/lib/vmbuilder_plugins/emerge.rb +0 -76
- data/lib/vmbuilder_plugins/gem.rb +0 -90
- data/lib/vmbuilder_plugins/std.rb +0 -203
data/lib/deprec/recipes/wpmu.rb
DELETED
@@ -1,103 +0,0 @@
|
|
1
|
-
# Copyright 2006-2008 by Mike Bailey. All rights reserved.
|
2
|
-
Capistrano::Configuration.instance(:must_exist).load do
|
3
|
-
|
4
|
-
require 'digest'
|
5
|
-
|
6
|
-
set :wpmu_root, '/var/www/wpmu'
|
7
|
-
set(:wpmu_domain) { Capistrano::CLI.ui.ask 'Enter domain wordpress will be served on' }
|
8
|
-
|
9
|
-
namespace :deprec do
|
10
|
-
namespace :wpmu do
|
11
|
-
|
12
|
-
SRC_PACKAGES[:wpmu] =
|
13
|
-
{
|
14
|
-
:url => "http://mu.wordpress.org/latest.tar.gz",
|
15
|
-
:dir => 'wordpress-mu'
|
16
|
-
}
|
17
|
-
|
18
|
-
desc "Install Wordpress"
|
19
|
-
task :install, :roles => :wpmu do
|
20
|
-
install_deps
|
21
|
-
deprec2.download_src(SRC_PACKAGES[:wpmu], src_dir)
|
22
|
-
deprec2.unpack_src(SRC_PACKAGES[:wpmu], src_dir)
|
23
|
-
sudo "test -d #{wpmu_root} && #{sudo} rm -fr #{wpmu_root}; exit 0;"
|
24
|
-
sudo "mv #{src_dir}/wordpress-mu #{wpmu_root}"
|
25
|
-
initial_config
|
26
|
-
sudo "a2ensite wpmu"
|
27
|
-
top.deprec.apache.reload
|
28
|
-
manual_instructions
|
29
|
-
end
|
30
|
-
|
31
|
-
task :manual_instructions do
|
32
|
-
puts <<-DESC
|
33
|
-
|
34
|
-
Run something like the following mysql commands on your datbase server:
|
35
|
-
|
36
|
-
drop database wpmu;
|
37
|
-
create database wpmu;
|
38
|
-
grant all on wpmu.* to 'wpmu'@'%' identified by 'wpmu';
|
39
|
-
flush privileges;
|
40
|
-
|
41
|
-
Then run:
|
42
|
-
|
43
|
-
cap deprec:wpmu:make_insecure
|
44
|
-
|
45
|
-
Setup database access via the webpage at:
|
46
|
-
|
47
|
-
http://#{wpmu_domain}/
|
48
|
-
|
49
|
-
Then run:
|
50
|
-
|
51
|
-
cap deprec:wpmu:make_secure
|
52
|
-
|
53
|
-
DESC
|
54
|
-
end
|
55
|
-
|
56
|
-
task :install_deps, :roles => :wpmu do
|
57
|
-
top.deprec.apache.install
|
58
|
-
sudo "a2enmod rewrite"
|
59
|
-
top.deprec.php.install
|
60
|
-
end
|
61
|
-
|
62
|
-
PROJECT_CONFIG_FILES[:wpmu] = [
|
63
|
-
|
64
|
-
{:template => "apache_vhost.conf.erb",
|
65
|
-
:path => '/etc/apache2/sites-available/wpmu',
|
66
|
-
:mode => 0755,
|
67
|
-
:owner => 'root:root'}
|
68
|
-
|
69
|
-
]
|
70
|
-
|
71
|
-
desc "Generate configuration file(s) for wpmu from template(s)"
|
72
|
-
task :config_gen do
|
73
|
-
PROJECT_CONFIG_FILES[:wpmu].each do |file|
|
74
|
-
deprec2.render_template(:wpmu, file)
|
75
|
-
end
|
76
|
-
end
|
77
|
-
|
78
|
-
desc "Push wordpress config files to server"
|
79
|
-
task :config, :roles => :wpmu do
|
80
|
-
deprec2.push_configs(:wpmu, SYSTEM_CONFIG_FILES[:wpmu])
|
81
|
-
end
|
82
|
-
|
83
|
-
# Push direct to remote
|
84
|
-
task :initial_config, :roles => :wpmu do
|
85
|
-
PROJECT_CONFIG_FILES[:wpmu].each do |file|
|
86
|
-
deprec2.render_template(:wpmu, file.merge(:remote => true))
|
87
|
-
end
|
88
|
-
end
|
89
|
-
|
90
|
-
# Set permissions to allow wpmu to write config files
|
91
|
-
task :make_insecure, :roles => :wpmu do
|
92
|
-
sudo "chmod 777 #{wpmu_root} #{wpmu_root}/wp-content"
|
93
|
-
end
|
94
|
-
|
95
|
-
# Reverse the previous command
|
96
|
-
task :make_secure, :roles => :wpmu do
|
97
|
-
sudo "chmod 755 #{wpmu_root} #{wpmu_root}/wp-content"
|
98
|
-
end
|
99
|
-
|
100
|
-
end
|
101
|
-
end
|
102
|
-
|
103
|
-
end
|
@@ -1,69 +0,0 @@
|
|
1
|
-
# Copyright 2006-2008 by Mike Bailey. All rights reserved.
|
2
|
-
unless Capistrano::Configuration.respond_to?(:instance)
|
3
|
-
abort "deprec2 requires Capistrano 2"
|
4
|
-
end
|
5
|
-
require "#{File.dirname(__FILE__)}/recipes/canonical"
|
6
|
-
require "#{File.dirname(__FILE__)}/recipes/deprec"
|
7
|
-
require "#{File.dirname(__FILE__)}/recipes/deprecated"
|
8
|
-
|
9
|
-
# Updated for deprec3
|
10
|
-
|
11
|
-
require "#{File.dirname(__FILE__)}/recipes/users"
|
12
|
-
require "#{File.dirname(__FILE__)}/recipes/network"
|
13
|
-
require "#{File.dirname(__FILE__)}/recipes/mri"
|
14
|
-
require "#{File.dirname(__FILE__)}/recipes/ree"
|
15
|
-
require "#{File.dirname(__FILE__)}/recipes/rack"
|
16
|
-
require "#{File.dirname(__FILE__)}/recipes/rubygems"
|
17
|
-
require "#{File.dirname(__FILE__)}/recipes/nagios3"
|
18
|
-
require "#{File.dirname(__FILE__)}/recipes/nrpe"
|
19
|
-
require "#{File.dirname(__FILE__)}/recipes/git"
|
20
|
-
require "#{File.dirname(__FILE__)}/recipes/svn"
|
21
|
-
|
22
|
-
# To be updated for deprec3
|
23
|
-
|
24
|
-
require "#{File.dirname(__FILE__)}/recipes/ssh"
|
25
|
-
require "#{File.dirname(__FILE__)}/recipes/passenger"
|
26
|
-
require "#{File.dirname(__FILE__)}/recipes/mysql"
|
27
|
-
require "#{File.dirname(__FILE__)}/recipes/postgresql"
|
28
|
-
require "#{File.dirname(__FILE__)}/recipes/apache"
|
29
|
-
require "#{File.dirname(__FILE__)}/recipes/haproxy"
|
30
|
-
require "#{File.dirname(__FILE__)}/recipes/heartbeat"
|
31
|
-
require "#{File.dirname(__FILE__)}/recipes/monit"
|
32
|
-
require "#{File.dirname(__FILE__)}/recipes/collectd"
|
33
|
-
require "#{File.dirname(__FILE__)}/recipes/ubuntu"
|
34
|
-
|
35
|
-
# To be decided...
|
36
|
-
|
37
|
-
require "#{File.dirname(__FILE__)}/recipes/ec2"
|
38
|
-
require "#{File.dirname(__FILE__)}/recipes/vmware_tools"
|
39
|
-
require "#{File.dirname(__FILE__)}/recipes/mongrel"
|
40
|
-
require "#{File.dirname(__FILE__)}/recipes/sqlite"
|
41
|
-
require "#{File.dirname(__FILE__)}/recipes/nginx"
|
42
|
-
require "#{File.dirname(__FILE__)}/recipes/bash"
|
43
|
-
require "#{File.dirname(__FILE__)}/recipes/php"
|
44
|
-
require "#{File.dirname(__FILE__)}/recipes/aoe"
|
45
|
-
require "#{File.dirname(__FILE__)}/recipes/ddclient"
|
46
|
-
require "#{File.dirname(__FILE__)}/recipes/ntp"
|
47
|
-
require "#{File.dirname(__FILE__)}/recipes/logrotate"
|
48
|
-
require "#{File.dirname(__FILE__)}/recipes/ssl"
|
49
|
-
require "#{File.dirname(__FILE__)}/recipes/postfix"
|
50
|
-
require "#{File.dirname(__FILE__)}/recipes/memcache"
|
51
|
-
require "#{File.dirname(__FILE__)}/recipes/syslog"
|
52
|
-
require "#{File.dirname(__FILE__)}/recipes/syslog_ng"
|
53
|
-
require "#{File.dirname(__FILE__)}/recipes/stunnel"
|
54
|
-
require "#{File.dirname(__FILE__)}/recipes/lvm"
|
55
|
-
require "#{File.dirname(__FILE__)}/recipes/vnstat"
|
56
|
-
require "#{File.dirname(__FILE__)}/recipes/utils"
|
57
|
-
|
58
|
-
# Retired recipes
|
59
|
-
#
|
60
|
-
# require "#{File.dirname(__FILE__)}/recipes/integrity"
|
61
|
-
# require "#{File.dirname(__FILE__)}/recipes/xen"
|
62
|
-
# require "#{File.dirname(__FILE__)}/recipes/xentools"
|
63
|
-
# require "#{File.dirname(__FILE__)}/recipes/scm/trac"
|
64
|
-
# require "#{File.dirname(__FILE__)}/recipes/sphinx"
|
65
|
-
# require "#{File.dirname(__FILE__)}/recipes/apt_mirror"
|
66
|
-
# require "#{File.dirname(__FILE__)}/recipes/wpmu"
|
67
|
-
# require "#{File.dirname(__FILE__)}/recipes/ar_sendmail"
|
68
|
-
# require "#{File.dirname(__FILE__)}/recipes/starling"
|
69
|
-
# require "#{File.dirname(__FILE__)}/recipes/couchdb"
|
@@ -1,5 +0,0 @@
|
|
1
|
-
check process ar_sendmail-<%= application %> with pidfile <%= current_path %>/tmp/pids/ar_sendmail.pid
|
2
|
-
start program = "/usr/local/sbin/daemonize -c <%= current_path %> -o <%= current_path %>/log/ar_sendmail.log -e <%= current_path %>/log/ar_sendmail.log -p <%= current_path %>/tmp/pids/ar_sendmail.pid -l <%= current_path %>/tmp/pids/ar_sendmail.pid /usr/local/bin/ar_sendmail --environment production --verbose"
|
3
|
-
stop program = "/usr/bin/xargs kill -9 < <%= current_path %>/tmp/pids/ar_sendmail.pid"
|
4
|
-
|
5
|
-
if 3 restarts within 5 cycles then timeout
|
@@ -1 +0,0 @@
|
|
1
|
-
{ "chef": { "server_fqdn": "<%= server_fqdn %>" }, "recipes": "<%= recipes %>" }
|
@@ -1,11 +0,0 @@
|
|
1
|
-
# Configuration file for ddclient generated by deprec
|
2
|
-
#
|
3
|
-
# /etc/ddclient.conf
|
4
|
-
|
5
|
-
pid=/var/run/ddclient.pid
|
6
|
-
protocol=dyndns2
|
7
|
-
use=if, if=<%= ddclient_interface %>
|
8
|
-
server=members.dyndns.org
|
9
|
-
login=<%= ddclient_user %>
|
10
|
-
password='<%= ddclient_pass %>'
|
11
|
-
<%= Array(ddclient_domains).join(',') %>
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# Configuration for ddclient scripts
|
2
|
-
# generated from debconf on Sun Jan 18 09:20:43 UTC 2009
|
3
|
-
#
|
4
|
-
# /etc/default/ddclient
|
5
|
-
|
6
|
-
# Set to "true" if ddclient should be run every time a new ppp connection is
|
7
|
-
# established. This might be useful, if you are using dial-on-demand
|
8
|
-
run_ipup="true"
|
9
|
-
|
10
|
-
# Set to "true" if ddclient should run in daemon mode
|
11
|
-
run_daemon="true"
|
12
|
-
|
13
|
-
# Set the time interval between the updates of the dynamic DNS name in seconds.
|
14
|
-
# This option only takes effect if the ddclient runs in daemon mode.
|
15
|
-
daemon_interval="300"
|
@@ -1,21 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
require "rubygems"
|
3
|
-
require "integrity"
|
4
|
-
|
5
|
-
# If you want to add any notifiers, install the gems and then require them here
|
6
|
-
# For example, to enable the Email notifier: install the gem (from github:
|
7
|
-
#
|
8
|
-
# sudo gem install -s http://gems.github.com foca-integrity-email
|
9
|
-
#
|
10
|
-
# And then uncomment the following line:
|
11
|
-
#
|
12
|
-
# require "notifier/email"
|
13
|
-
|
14
|
-
# Load configuration and initialize Integrity
|
15
|
-
Integrity.new(File.dirname(__FILE__) + "/config.yml")
|
16
|
-
|
17
|
-
# You probably don't want to edit anything below
|
18
|
-
Integrity::App.set :environment, ENV["RACK_ENV"] || :production
|
19
|
-
Integrity::App.set :port, 8910
|
20
|
-
|
21
|
-
run Integrity::App
|
@@ -1,43 +0,0 @@
|
|
1
|
-
# Domain where integrity will be running from. This is used to have
|
2
|
-
# nice URLs in your notifications.
|
3
|
-
# For example:
|
4
|
-
# http://builder.integrityapp.com
|
5
|
-
:base_uri: http://<%= integrity_domain %>
|
6
|
-
|
7
|
-
# This should be a complete connection string to your database.
|
8
|
-
#
|
9
|
-
# Examples:
|
10
|
-
# * `mysql://user:password@localhost/integrity`
|
11
|
-
# * `postgres://user:password@localhost/integrity`
|
12
|
-
# * `sqlite3:///home/integrity/db/integrity.sqlite`
|
13
|
-
#
|
14
|
-
# Note:
|
15
|
-
# * The appropriate data_objects adapter must be installed (`do_mysql`, etc)
|
16
|
-
# * You must create the `integrity` database on localhost, of course.
|
17
|
-
:database_uri: sqlite3:///<%= integrity_install_dir %>/integrity.db
|
18
|
-
|
19
|
-
# This is where your project's code will be checked out to. Make sure it's
|
20
|
-
# writable by the user that runs Integrity.
|
21
|
-
:export_directory: <%= integrity_install_dir %>/builds
|
22
|
-
|
23
|
-
# Path to the integrity log file
|
24
|
-
:log: <%= integrity_install_dir %>/log/integrity.log
|
25
|
-
|
26
|
-
# Enable or disable HTTP authentication for the app. BE AWARE that if you
|
27
|
-
# disable this anyone can delete and alter projects, so do it only if your
|
28
|
-
# app is running in a controlled environment (ie, behind your company's
|
29
|
-
# firewall.)
|
30
|
-
:use_basic_auth: <%= integrity_use_basic_auth %>
|
31
|
-
|
32
|
-
<%- if integrity_use_basic_auth -%>
|
33
|
-
# When `use_basic_auth` is true, the admin's username for HTTP authentication.
|
34
|
-
:admin_username: <%= integrity_admin_username %>
|
35
|
-
|
36
|
-
# When `use_basic_auth` is true, the admin's password. Usually saved as a
|
37
|
-
# SHA1 hash. See the next option.
|
38
|
-
:admin_password: <%= integrity_hash_admin_password ? SHA1::hexdigest(integrity_admin_password) : integrity_admin_password %>
|
39
|
-
|
40
|
-
# If this is true, then whenever we authenticate the admin user, will hash
|
41
|
-
# it using SHA1. If not, we'll assume the provided password is in plain text.
|
42
|
-
:hash_admin_password: <%= integrity_hash_admin_password %>
|
43
|
-
<%- end -%>
|
@@ -1,5 +0,0 @@
|
|
1
|
-
check process searchd with pidfile /opt/local/var/db/sphinx/log/searchd.pid
|
2
|
-
start program = "/usr/local/bin/searchd --config <%= deploy_to %>/current/config/ultrasphinx/production.conf"
|
3
|
-
stop program = "/usr/local/bin/searchd --stop --config <%= deploy_to %>/current/config/ultrasphinx/production.conf"
|
4
|
-
|
5
|
-
if 3 restarts within 5 cycles then timeout
|
@@ -1,14 +0,0 @@
|
|
1
|
-
check process starling-<%= starling_port %> with pidfile <%= starling_run_dir %>/starling.pid
|
2
|
-
group starling
|
3
|
-
start program = "start-stop-daemon -c <%= starling_user %>:<%= starling_group %> --start --quiet --pidfile <%= starling_run_dir %>/starling.pid --exec /usr/local/bin/starling -- <%= starling_runtime_options %>"
|
4
|
-
stop program = "start-stop-daemon -c <%= starling_user %>:<%= starling_group %> --stop --quiet --pidfile <%= starling_run_dir %>/starling.pid --exec /usr/local/bin/starling -- <%= starling_runtime_options %>"
|
5
|
-
|
6
|
-
if failed host 127.0.0.1 port <%= starling_port %>
|
7
|
-
with timeout 10 seconds
|
8
|
-
then alert
|
9
|
-
|
10
|
-
if totalmem > 100 Mb then restart
|
11
|
-
if cpu > 60% for 2 cycles then alert
|
12
|
-
if cpu > 80% for 5 cycles then restart
|
13
|
-
if loadavg(5min) > 10 for 8 cycles then restart
|
14
|
-
if 3 restarts within 5 cycles then timeout
|
@@ -1,71 +0,0 @@
|
|
1
|
-
#! /bin/sh
|
2
|
-
### BEGIN INIT INFO
|
3
|
-
# Provides: starling
|
4
|
-
# Required-Start: $local_fs $remote_fs
|
5
|
-
# Required-Stop: $local_fs $remote_fs
|
6
|
-
# Default-Start: 2 3 4 5
|
7
|
-
# Default-Stop: S 0 1 6
|
8
|
-
# Short-Description: Starling queue server
|
9
|
-
# Description: The Starling distributed, transactional queue server
|
10
|
-
### END INIT INFO
|
11
|
-
# Author: Twitter
|
12
|
-
# Version: 0.9.7.7
|
13
|
-
|
14
|
-
set -e
|
15
|
-
|
16
|
-
DUSER=<%= starling_user %>
|
17
|
-
DGROUP=<%= starling_group %>
|
18
|
-
LOGFILE=<%= starling_log_dir %>/starling.log
|
19
|
-
SPOOLDIR=<%= starling_spool_dir %>
|
20
|
-
PORT=<%= starling_port %>
|
21
|
-
LISTEN=0.0.0.0
|
22
|
-
PIDFILE=<%= starling_run_dir %>/starling.pid
|
23
|
-
|
24
|
-
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
25
|
-
NAME=starling
|
26
|
-
DESC="Starling"
|
27
|
-
INSTALL_DIR=/usr/local/bin
|
28
|
-
DAEMON=$INSTALL_DIR/$NAME
|
29
|
-
SCRIPTNAME=/etc/init.d/$NAME
|
30
|
-
OPTS="-h $LISTEN -p $PORT -d -q $SPOOLDIR -P $PIDFILE -L $LOGFILE"
|
31
|
-
|
32
|
-
. /lib/lsb/init-functions
|
33
|
-
|
34
|
-
|
35
|
-
# Gracefully exit if the package has been removed.
|
36
|
-
test -x $DAEMON || exit 0
|
37
|
-
|
38
|
-
d_start() {
|
39
|
-
log_begin_msg "Starting Starling Server..."
|
40
|
-
start-stop-daemon -c $DUSER:$DGROUP --start --quiet --pidfile $PIDFILE --exec $DAEMON \
|
41
|
-
-- $OPTS || log_end_msg 1
|
42
|
-
log_end_msg 0
|
43
|
-
}
|
44
|
-
|
45
|
-
d_stop() {
|
46
|
-
log_begin_msg "Stopping Starling Server..."
|
47
|
-
start-stop-daemon -c $DUSER:$DGROUP --stop --quiet --pidfile $PIDFILE \
|
48
|
-
|| log_end_msg 1
|
49
|
-
log_end_msg 0
|
50
|
-
}
|
51
|
-
|
52
|
-
case "$1" in
|
53
|
-
start)
|
54
|
-
d_start
|
55
|
-
;;
|
56
|
-
stop)
|
57
|
-
d_stop
|
58
|
-
;;
|
59
|
-
restart|force-reload|reload)
|
60
|
-
d_stop
|
61
|
-
sleep 2
|
62
|
-
d_start
|
63
|
-
;;
|
64
|
-
*)
|
65
|
-
echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
|
66
|
-
exit 3
|
67
|
-
;;
|
68
|
-
esac
|
69
|
-
|
70
|
-
exit 0
|
71
|
-
|
@@ -1,43 +0,0 @@
|
|
1
|
-
<VirtualHost *:80>
|
2
|
-
ServerName <%= @username %>.svn.engineyard.com
|
3
|
-
ServerAdmin admin@engineyard.com
|
4
|
-
|
5
|
-
<Location />
|
6
|
-
DAV svn
|
7
|
-
|
8
|
-
Satisfy Any
|
9
|
-
Require valid-user
|
10
|
-
|
11
|
-
AuthType Basic
|
12
|
-
AuthName "Engine Yard SVN Cluster: <%= @username %>"
|
13
|
-
AuthUserFile /data/svn/<%= @username %>/users
|
14
|
-
|
15
|
-
AuthzSVNAccessFile /data/svn/<%= @username %>/access
|
16
|
-
|
17
|
-
SVNPath /data/svn/<%= @username %>/repo
|
18
|
-
</Location>
|
19
|
-
</VirtualHost>
|
20
|
-
|
21
|
-
<VirtualHost *:443>
|
22
|
-
ServerName <%= @username %>.svn.engineyard.com
|
23
|
-
ServerAdmin admin@engineyard.com
|
24
|
-
|
25
|
-
<Location />
|
26
|
-
DAV svn
|
27
|
-
|
28
|
-
Satisfy Any
|
29
|
-
Require valid-user
|
30
|
-
|
31
|
-
AuthType Basic
|
32
|
-
AuthName "Engine Yard SVN Cluster: <%= @username %>"
|
33
|
-
AuthUserFile /data/svn/<%= @username %>/users
|
34
|
-
|
35
|
-
AuthzSVNAccessFile /data/svn/<%= @username %>/access
|
36
|
-
|
37
|
-
SVNPath /data/svn/<%= @username %>/repo
|
38
|
-
</Location>
|
39
|
-
|
40
|
-
SSLEngine on
|
41
|
-
SSLProtocol all
|
42
|
-
SSLCipherSuite HIGH:MEDIUM
|
43
|
-
</VirtualHost>
|
@@ -1,24 +0,0 @@
|
|
1
|
-
<VirtualHost *:80>
|
2
|
-
ServerName <%= trac_home_url %>
|
3
|
-
|
4
|
-
# Configure trac_cluster
|
5
|
-
<Proxy balancer://trac_cluster>
|
6
|
-
BalancerMember http://127.0.0.1:<%= tracd_port %>
|
7
|
-
</Proxy>
|
8
|
-
|
9
|
-
RewriteEngine On
|
10
|
-
|
11
|
-
# Redirect to the AGR track instance
|
12
|
-
RewriteRule ^/$ /<%= application %>/ [R]
|
13
|
-
# Send all traffic to tracd
|
14
|
-
RewriteRule ^/(.*)$ balancer://trac_cluster%{REQUEST_URI} [P,QSA,L]
|
15
|
-
|
16
|
-
# Deflate
|
17
|
-
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript
|
18
|
-
BrowserMatch ^Mozilla/4 gzip-only-text/html
|
19
|
-
BrowserMatch ^Mozilla/4\.0[678] no-gzip
|
20
|
-
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
|
21
|
-
|
22
|
-
ErrorLog logs/trac.agoodride.tv-error_log
|
23
|
-
CustomLog logs/trac.agoodride.tv-access_log combined
|
24
|
-
</VirtualHost>
|