deprec 1.9.3 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +280 -0
- data/COPYING +19 -0
- data/LICENSE +339 -0
- data/README +152 -0
- data/THANKS +17 -0
- data/bin/depify +128 -0
- data/docs/EXAMPLE-installing_tracks.txt +41 -0
- data/docs/README.nagios +22 -0
- data/docs/README.rails +17 -0
- data/docs/config_gen_explained.txt +39 -0
- data/docs/{README.quickstart → deprec-1.x/deprec-1.x.quickstart} +4 -1
- data/docs/{building_edge_capistrano.txt → deprec-1.x/notes.txt} +6 -3
- data/docs/old/deprec_banner.gif +0 -0
- data/docs/windows_linux.txt +350 -0
- data/docs/xen/traffic_monitoring_with_vnstat.txt +95 -0
- data/docs/xen/xen-tools-notes.txt +31 -0
- data/docs/xen/xen_on_hardy.txt +39 -0
- data/lib/deprec.rb +8 -1
- data/lib/deprec/capistrano_extensions.rb +442 -0
- data/lib/deprec/recipes.rb +50 -233
- data/lib/deprec/recipes/aoe.rb +79 -0
- data/lib/deprec/recipes/app/mongrel.rb +213 -0
- data/lib/deprec/recipes/app/passenger.rb +197 -0
- data/lib/deprec/recipes/apt_mirror.rb +99 -0
- data/lib/deprec/recipes/ar_sendmail.rb +67 -0
- data/lib/deprec/recipes/canonical.rb +68 -0
- data/lib/deprec/recipes/db/mysql.rb +144 -0
- data/lib/deprec/recipes/db/postgresql.rb +104 -0
- data/lib/deprec/recipes/db/sqlite.rb +37 -0
- data/lib/deprec/recipes/ddclient.rb +51 -0
- data/lib/deprec/recipes/deprec.rb +199 -0
- data/lib/deprec/recipes/deprecated.rb +71 -0
- data/lib/deprec/recipes/example.rb +115 -0
- data/lib/deprec/recipes/git.rb +97 -0
- data/lib/deprec/recipes/gitosis.rb +48 -0
- data/lib/deprec/recipes/heartbeat.rb +138 -0
- data/lib/deprec/recipes/logrotate.rb +54 -0
- data/lib/deprec/recipes/lvm.rb +20 -0
- data/lib/deprec/recipes/memcache.rb +6 -2
- data/lib/deprec/recipes/monit.rb +143 -0
- data/lib/deprec/recipes/nagios.rb +305 -0
- data/lib/deprec/recipes/network.rb +93 -0
- data/lib/deprec/recipes/ntp.rb +103 -0
- data/lib/deprec/recipes/php.rb +58 -0
- data/lib/deprec/recipes/postfix.rb +115 -0
- data/lib/deprec/recipes/rails.rb +300 -55
- data/lib/deprec/recipes/ruby/mri.rb +55 -0
- data/lib/deprec/recipes/ruby/ree.rb +41 -0
- data/lib/deprec/recipes/sphinx.rb +86 -0
- data/lib/deprec/recipes/ssh.rb +85 -18
- data/lib/deprec/recipes/ssl.rb +55 -0
- data/lib/deprec/recipes/starling.rb +119 -0
- data/lib/deprec/recipes/svn.rb +163 -183
- data/lib/deprec/recipes/trac.rb +239 -62
- data/lib/deprec/recipes/ubuntu.rb +18 -100
- data/lib/deprec/recipes/users.rb +90 -0
- data/lib/deprec/recipes/utils.rb +58 -0
- data/lib/deprec/recipes/vnstat.rb +85 -0
- data/lib/deprec/recipes/web/apache.rb +119 -0
- data/lib/deprec/recipes/web/nginx.rb +172 -0
- data/lib/deprec/recipes/wordpress.rb +96 -0
- data/lib/deprec/recipes/wpmu.rb +103 -0
- data/lib/deprec/recipes/xen.rb +267 -0
- data/lib/deprec/recipes/xentools.rb +75 -0
- data/lib/deprec/templates/aoe/aoe-init +55 -0
- data/lib/deprec/templates/aoe/fence_aoemask +351 -0
- data/lib/deprec/templates/apache/namevirtualhosts.conf +5 -0
- data/lib/deprec/templates/apt/sources.list +18 -0
- data/lib/deprec/templates/apt_mirror/apt-mirror-cron +4 -0
- data/lib/deprec/templates/apt_mirror/mirror.list +33 -0
- data/lib/deprec/templates/ar_sendmail/logrotate.conf.erb +9 -0
- data/lib/deprec/templates/ar_sendmail/monit.conf.erb +5 -0
- data/lib/deprec/templates/ddclient/ddclient.conf.erb +11 -0
- data/lib/deprec/templates/ddclient/ddclient.erb +15 -0
- data/lib/deprec/templates/deprec/caprc.erb +14 -0
- data/lib/deprec/templates/heartbeat/authkeys.erb +2 -0
- data/lib/deprec/templates/heartbeat/ha.cf.erb +15 -0
- data/lib/deprec/templates/heartbeat/haresources.erb +1 -0
- data/lib/deprec/templates/logrotate/logrotate.conf.erb +32 -0
- data/lib/deprec/templates/mongrel/apache_vhost.erb +148 -0
- data/lib/deprec/templates/mongrel/logrotate.conf.erb +11 -0
- data/lib/deprec/{third_party/mongrel_cluster/resources/mongrel_cluster → templates/mongrel/mongrel_cluster-init-script} +19 -6
- data/lib/deprec/templates/mongrel/mongrel_cluster.yml.erb +10 -0
- data/lib/deprec/templates/mongrel/monit.conf.erb +17 -0
- data/lib/deprec/templates/mongrel/nginx_vhost.erb +41 -0
- data/lib/deprec/templates/monit/monit-init-script +104 -0
- data/lib/deprec/templates/monit/monitrc.erb +227 -0
- data/lib/deprec/templates/monit/nothing +0 -0
- data/lib/deprec/templates/mysql/create_databases.sql +20 -0
- data/lib/deprec/templates/mysql/database.yml.prod +6 -0
- data/lib/deprec/templates/mysql/database.yml.stage +6 -0
- data/lib/deprec/templates/mysql/my.cnf.erb +140 -0
- data/lib/deprec/templates/mysql/sphinx.conf.prod +542 -0
- data/lib/deprec/templates/mysql/sphinx.conf.stage +542 -0
- data/lib/deprec/templates/nagios/cgi.cfg.erb +321 -0
- data/lib/deprec/templates/nagios/check_linux_free_memory.pl +118 -0
- data/lib/deprec/templates/nagios/check_mongrel_cluster.rb +82 -0
- data/lib/deprec/templates/nagios/commands.cfg.erb +240 -0
- data/lib/deprec/templates/nagios/contacts.cfg.erb +57 -0
- data/lib/deprec/templates/nagios/hosts.cfg.erb +143 -0
- data/lib/deprec/templates/nagios/htpasswd.users +1 -0
- data/lib/deprec/templates/nagios/localhost.cfg.erb +157 -0
- data/lib/deprec/templates/nagios/nagios.cfg.erb +1274 -0
- data/lib/deprec/templates/nagios/nagios_apache_vhost.conf.erb +45 -0
- data/lib/deprec/templates/nagios/nrpe.cfg.erb +210 -0
- data/lib/deprec/templates/nagios/nrpe.xinetd.erb +16 -0
- data/lib/deprec/templates/nagios/resource.cfg.erb +34 -0
- data/lib/deprec/templates/nagios/services.cfg.erb +79 -0
- data/lib/deprec/templates/nagios/templates.cfg.erb +9 -0
- data/lib/deprec/templates/nagios/timeperiods.cfg.erb +94 -0
- data/lib/deprec/templates/network/hostname.erb +1 -0
- data/lib/deprec/templates/network/hosts.erb +2 -0
- data/lib/deprec/templates/network/interfaces.erb +18 -0
- data/lib/deprec/templates/network/resolv.conf.erb +6 -0
- data/lib/deprec/templates/nginx/logrotate.conf.erb +13 -0
- data/lib/deprec/templates/nginx/mime.types.erb +70 -0
- data/lib/deprec/templates/nginx/nginx-init-script +62 -0
- data/lib/deprec/templates/nginx/nginx.conf.erb +125 -0
- data/lib/deprec/templates/nginx/nginx.logrotate.d +12 -0
- data/lib/deprec/templates/nginx/nothing.conf +1 -0
- data/lib/deprec/templates/nginx/rails_nginx_vhost.conf.erb +41 -0
- data/lib/deprec/templates/ntp/ntp.conf.erb +42 -0
- data/lib/deprec/templates/passenger/apache_vhost.erb +21 -0
- data/lib/deprec/templates/passenger/passenger.conf.erb +21 -0
- data/lib/deprec/templates/passenger/passenger.load.erb +3 -0
- data/lib/deprec/templates/postfix/aliases.erb +3 -0
- data/lib/deprec/templates/postfix/dynamicmaps.cf.erb +8 -0
- data/lib/deprec/templates/{postfix_main.conf → postfix/main.cf.erb} +6 -8
- data/lib/deprec/templates/postfix/master.cf.erb +77 -0
- data/lib/deprec/templates/sphinx/monit.conf.erb +5 -0
- data/lib/deprec/templates/ssh/ssh_config.erb +50 -0
- data/lib/deprec/templates/ssh/sshd_config.erb +78 -0
- data/lib/deprec/templates/ssl/make-ssl-cert +138 -0
- data/lib/deprec/templates/ssl/ssl-cert-snakeoil.key +15 -0
- data/lib/deprec/templates/ssl/ssl-cert-snakeoil.pem +19 -0
- data/lib/deprec/templates/starling/monit.conf.erb +14 -0
- data/lib/deprec/templates/starling/starling-init-script.erb +71 -0
- data/lib/deprec/templates/subversion/svn.apache.vhost.erb +43 -0
- data/lib/deprec/templates/trac/apache_vhost.conf.erb +24 -0
- data/lib/deprec/templates/trac/nginx_vhost.conf.erb +26 -0
- data/lib/deprec/templates/trac/trac.ini.erb +169 -0
- data/lib/deprec/templates/trac/trac_deprec.png +0 -0
- data/lib/deprec/templates/trac/tracd-init.erb +43 -0
- data/lib/deprec/templates/trac/users.htdigest.erb +0 -0
- data/lib/deprec/templates/vnstat/config.php +57 -0
- data/lib/deprec/templates/wordpress/apache2_wordpress_vhost.conf.erb +31 -0
- data/lib/deprec/templates/wordpress/wp-config.php.erb +31 -0
- data/lib/deprec/templates/wpmu/apache_vhost.conf.erb +13 -0
- data/lib/deprec/templates/xen/network-bridge-wrapper +3 -0
- data/lib/deprec/templates/xen/xend-config.sxp.erb +195 -0
- data/lib/deprec/templates/xen/xend-init.erb +57 -0
- data/lib/deprec/templates/xen/xendomains.erb +137 -0
- data/lib/deprec/templates/xentools/15-disable-hwclock +40 -0
- data/lib/deprec/templates/xentools/40-setup-networking +145 -0
- data/lib/deprec/templates/xentools/xen-tools.conf.erb +276 -0
- data/lib/deprec/templates/xentools/xm.tmpl.erb +138 -0
- data/lib/deprec_cmd_completion.sh +26 -0
- data/lib/vmbuilder_plugins/all.rb +20 -0
- data/lib/vmbuilder_plugins/apt.rb +93 -0
- data/lib/vmbuilder_plugins/emerge.rb +76 -0
- data/lib/{deprec/third_party/vmbuilder/plugins → vmbuilder_plugins}/gem.rb +10 -17
- data/lib/{deprec/third_party/vmbuilder/plugins → vmbuilder_plugins}/std.rb +69 -19
- metadata +204 -55
- data/bin/deprec +0 -35
- data/docs/README.slicehost +0 -14
- data/docs/README.svn_trac +0 -19
- data/lib/deprec/capistrano_extensions/actor_extensions.rb +0 -89
- data/lib/deprec/capistrano_extensions/cli_extensions.rb +0 -38
- data/lib/deprec/capistrano_extensions/deprec_extensions.rb +0 -137
- data/lib/deprec/generators/deprec/USAGE +0 -11
- data/lib/deprec/generators/deprec/deprec_generator.rb +0 -24
- data/lib/deprec/generators/deprec/templates/deploy.rb +0 -90
- data/lib/deprec/generators/loader.rb +0 -20
- data/lib/deprec/recipes/apache.rb +0 -91
- data/lib/deprec/recipes/cache_svn.rb +0 -74
- data/lib/deprec/recipes/vmware.rb +0 -114
- data/lib/deprec/templates/trac.ini.erb +0 -106
- data/lib/deprec/third_party/THIRD_PARTY_README +0 -12
- data/lib/deprec/third_party/mongrel_cluster/LICENSE +0 -506
- data/lib/deprec/third_party/mongrel_cluster/recipes.rb +0 -96
- data/lib/deprec/third_party/railsmachine/LICENSE +0 -506
- data/lib/deprec/third_party/railsmachine/recipes/apache.rb +0 -92
- data/lib/deprec/third_party/railsmachine/recipes/mysql.rb +0 -73
- data/lib/deprec/third_party/railsmachine/recipes/templates/httpd-ssl.conf +0 -80
- data/lib/deprec/third_party/railsmachine/recipes/templates/httpd.conf +0 -57
- data/lib/deprec/third_party/vmbuilder/plugins.rb +0 -8
- data/lib/deprec/third_party/vmbuilder/plugins/apt.rb +0 -144
- data/resources/capistrano_include_dotfiles.patch +0 -17
metadata
CHANGED
@@ -1,91 +1,240 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deprec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
|
-
authors:
|
7
|
-
|
6
|
+
authors:
|
7
|
+
- Mike Bailey
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
13
|
-
default_executable:
|
12
|
+
date: 2009-02-13 00:00:00 +11:00
|
13
|
+
default_executable: depify
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: capistrano
|
17
|
+
type: :runtime
|
17
18
|
version_requirement:
|
18
19
|
version_requirements: !ruby/object:Gem::Requirement
|
19
20
|
requirements:
|
20
|
-
- - "
|
21
|
+
- - ">"
|
21
22
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
23
|
+
version: 2.5.0
|
23
24
|
version:
|
24
25
|
description: This project provides libraries of Capistrano tasks and extensions to remove the repetative manual work associated with installing services on linux servers.
|
25
|
-
email:
|
26
|
+
email: mike@bailey.net.au
|
26
27
|
executables:
|
27
|
-
-
|
28
|
+
- depify
|
28
29
|
extensions: []
|
29
30
|
|
30
31
|
extra_rdoc_files: []
|
31
32
|
|
32
33
|
files:
|
33
|
-
- bin/
|
34
|
-
- docs/
|
35
|
-
- docs/
|
36
|
-
- docs/
|
37
|
-
- docs/
|
34
|
+
- bin/depify
|
35
|
+
- docs/config_gen_explained.txt
|
36
|
+
- docs/deprec-1.x
|
37
|
+
- docs/deprec-1.x/deprec-1.x.quickstart
|
38
|
+
- docs/deprec-1.x/notes.txt
|
39
|
+
- docs/EXAMPLE-installing_tracks.txt
|
40
|
+
- docs/old
|
41
|
+
- docs/old/deprec_banner.gif
|
42
|
+
- docs/README.nagios
|
43
|
+
- docs/README.rails
|
44
|
+
- docs/windows_linux.txt
|
45
|
+
- docs/xen
|
46
|
+
- docs/xen/traffic_monitoring_with_vnstat.txt
|
47
|
+
- docs/xen/xen-tools-notes.txt
|
48
|
+
- docs/xen/xen_on_hardy.txt
|
38
49
|
- lib/deprec
|
39
|
-
- lib/deprec/capistrano_extensions
|
40
|
-
- lib/deprec/capistrano_extensions/actor_extensions.rb
|
41
|
-
- lib/deprec/capistrano_extensions/cli_extensions.rb
|
42
|
-
- lib/deprec/capistrano_extensions/deprec_extensions.rb
|
43
|
-
- lib/deprec/generators
|
44
|
-
- lib/deprec/generators/deprec
|
45
|
-
- lib/deprec/generators/deprec/deprec_generator.rb
|
46
|
-
- lib/deprec/generators/deprec/templates
|
47
|
-
- lib/deprec/generators/deprec/templates/deploy.rb
|
48
|
-
- lib/deprec/generators/deprec/USAGE
|
49
|
-
- lib/deprec/generators/loader.rb
|
50
|
+
- lib/deprec/capistrano_extensions.rb
|
50
51
|
- lib/deprec/recipes
|
51
|
-
- lib/deprec/recipes/
|
52
|
-
- lib/deprec/recipes/
|
52
|
+
- lib/deprec/recipes/aoe.rb
|
53
|
+
- lib/deprec/recipes/app
|
54
|
+
- lib/deprec/recipes/app/mongrel.rb
|
55
|
+
- lib/deprec/recipes/app/passenger.rb
|
56
|
+
- lib/deprec/recipes/apt_mirror.rb
|
57
|
+
- lib/deprec/recipes/ar_sendmail.rb
|
58
|
+
- lib/deprec/recipes/canonical.rb
|
59
|
+
- lib/deprec/recipes/db
|
60
|
+
- lib/deprec/recipes/db/mysql.rb
|
61
|
+
- lib/deprec/recipes/db/postgresql.rb
|
62
|
+
- lib/deprec/recipes/db/sqlite.rb
|
63
|
+
- lib/deprec/recipes/ddclient.rb
|
64
|
+
- lib/deprec/recipes/deprec.rb
|
65
|
+
- lib/deprec/recipes/deprecated.rb
|
66
|
+
- lib/deprec/recipes/example.rb
|
67
|
+
- lib/deprec/recipes/git.rb
|
68
|
+
- lib/deprec/recipes/gitosis.rb
|
69
|
+
- lib/deprec/recipes/heartbeat.rb
|
70
|
+
- lib/deprec/recipes/logrotate.rb
|
71
|
+
- lib/deprec/recipes/lvm.rb
|
53
72
|
- lib/deprec/recipes/memcache.rb
|
73
|
+
- lib/deprec/recipes/monit.rb
|
74
|
+
- lib/deprec/recipes/nagios.rb
|
75
|
+
- lib/deprec/recipes/network.rb
|
76
|
+
- lib/deprec/recipes/ntp.rb
|
77
|
+
- lib/deprec/recipes/php.rb
|
78
|
+
- lib/deprec/recipes/postfix.rb
|
54
79
|
- lib/deprec/recipes/rails.rb
|
80
|
+
- lib/deprec/recipes/ruby
|
81
|
+
- lib/deprec/recipes/ruby/mri.rb
|
82
|
+
- lib/deprec/recipes/ruby/ree.rb
|
83
|
+
- lib/deprec/recipes/sphinx.rb
|
55
84
|
- lib/deprec/recipes/ssh.rb
|
85
|
+
- lib/deprec/recipes/ssl.rb
|
86
|
+
- lib/deprec/recipes/starling.rb
|
56
87
|
- lib/deprec/recipes/svn.rb
|
57
88
|
- lib/deprec/recipes/trac.rb
|
58
89
|
- lib/deprec/recipes/ubuntu.rb
|
59
|
-
- lib/deprec/recipes/
|
90
|
+
- lib/deprec/recipes/users.rb
|
91
|
+
- lib/deprec/recipes/utils.rb
|
92
|
+
- lib/deprec/recipes/vnstat.rb
|
93
|
+
- lib/deprec/recipes/web
|
94
|
+
- lib/deprec/recipes/web/apache.rb
|
95
|
+
- lib/deprec/recipes/web/nginx.rb
|
96
|
+
- lib/deprec/recipes/wordpress.rb
|
97
|
+
- lib/deprec/recipes/wpmu.rb
|
98
|
+
- lib/deprec/recipes/xen.rb
|
99
|
+
- lib/deprec/recipes/xentools.rb
|
60
100
|
- lib/deprec/recipes.rb
|
61
101
|
- lib/deprec/templates
|
62
|
-
- lib/deprec/templates/
|
63
|
-
- lib/deprec/templates/
|
64
|
-
- lib/deprec/
|
65
|
-
- lib/deprec/
|
66
|
-
- lib/deprec/
|
67
|
-
- lib/deprec/
|
68
|
-
- lib/deprec/
|
69
|
-
- lib/deprec/
|
70
|
-
- lib/deprec/
|
71
|
-
- lib/deprec/
|
72
|
-
- lib/deprec/
|
73
|
-
- lib/deprec/
|
74
|
-
- lib/deprec/
|
75
|
-
- lib/deprec/
|
76
|
-
- lib/deprec/
|
77
|
-
- lib/deprec/
|
78
|
-
- lib/deprec/
|
79
|
-
- lib/deprec/
|
80
|
-
- lib/deprec/
|
81
|
-
- lib/deprec/
|
82
|
-
- lib/deprec/
|
83
|
-
- lib/deprec/
|
84
|
-
- lib/deprec/
|
102
|
+
- lib/deprec/templates/aoe
|
103
|
+
- lib/deprec/templates/aoe/aoe-init
|
104
|
+
- lib/deprec/templates/aoe/fence_aoemask
|
105
|
+
- lib/deprec/templates/apache
|
106
|
+
- lib/deprec/templates/apache/namevirtualhosts.conf
|
107
|
+
- lib/deprec/templates/apt
|
108
|
+
- lib/deprec/templates/apt/sources.list
|
109
|
+
- lib/deprec/templates/apt_mirror
|
110
|
+
- lib/deprec/templates/apt_mirror/apt-mirror-cron
|
111
|
+
- lib/deprec/templates/apt_mirror/mirror.list
|
112
|
+
- lib/deprec/templates/ar_sendmail
|
113
|
+
- lib/deprec/templates/ar_sendmail/logrotate.conf.erb
|
114
|
+
- lib/deprec/templates/ar_sendmail/monit.conf.erb
|
115
|
+
- lib/deprec/templates/ddclient
|
116
|
+
- lib/deprec/templates/ddclient/ddclient.conf.erb
|
117
|
+
- lib/deprec/templates/ddclient/ddclient.erb
|
118
|
+
- lib/deprec/templates/deprec
|
119
|
+
- lib/deprec/templates/deprec/caprc.erb
|
120
|
+
- lib/deprec/templates/heartbeat
|
121
|
+
- lib/deprec/templates/heartbeat/authkeys.erb
|
122
|
+
- lib/deprec/templates/heartbeat/ha.cf.erb
|
123
|
+
- lib/deprec/templates/heartbeat/haresources.erb
|
124
|
+
- lib/deprec/templates/logrotate
|
125
|
+
- lib/deprec/templates/logrotate/logrotate.conf.erb
|
126
|
+
- lib/deprec/templates/mongrel
|
127
|
+
- lib/deprec/templates/mongrel/apache_vhost.erb
|
128
|
+
- lib/deprec/templates/mongrel/logrotate.conf.erb
|
129
|
+
- lib/deprec/templates/mongrel/mongrel_cluster-init-script
|
130
|
+
- lib/deprec/templates/mongrel/mongrel_cluster.yml.erb
|
131
|
+
- lib/deprec/templates/mongrel/monit.conf.erb
|
132
|
+
- lib/deprec/templates/mongrel/nginx_vhost.erb
|
133
|
+
- lib/deprec/templates/monit
|
134
|
+
- lib/deprec/templates/monit/monit-init-script
|
135
|
+
- lib/deprec/templates/monit/monitrc.erb
|
136
|
+
- lib/deprec/templates/monit/nothing
|
137
|
+
- lib/deprec/templates/mysql
|
138
|
+
- lib/deprec/templates/mysql/create_databases.sql
|
139
|
+
- lib/deprec/templates/mysql/database.yml.prod
|
140
|
+
- lib/deprec/templates/mysql/database.yml.stage
|
141
|
+
- lib/deprec/templates/mysql/my.cnf.erb
|
142
|
+
- lib/deprec/templates/mysql/sphinx.conf.prod
|
143
|
+
- lib/deprec/templates/mysql/sphinx.conf.stage
|
144
|
+
- lib/deprec/templates/nagios
|
145
|
+
- lib/deprec/templates/nagios/cgi.cfg.erb
|
146
|
+
- lib/deprec/templates/nagios/check_linux_free_memory.pl
|
147
|
+
- lib/deprec/templates/nagios/check_mongrel_cluster.rb
|
148
|
+
- lib/deprec/templates/nagios/commands.cfg.erb
|
149
|
+
- lib/deprec/templates/nagios/contacts.cfg.erb
|
150
|
+
- lib/deprec/templates/nagios/hosts.cfg.erb
|
151
|
+
- lib/deprec/templates/nagios/htpasswd.users
|
152
|
+
- lib/deprec/templates/nagios/localhost.cfg.erb
|
153
|
+
- lib/deprec/templates/nagios/nagios.cfg.erb
|
154
|
+
- lib/deprec/templates/nagios/nagios_apache_vhost.conf.erb
|
155
|
+
- lib/deprec/templates/nagios/nrpe.cfg.erb
|
156
|
+
- lib/deprec/templates/nagios/nrpe.xinetd.erb
|
157
|
+
- lib/deprec/templates/nagios/resource.cfg.erb
|
158
|
+
- lib/deprec/templates/nagios/services.cfg.erb
|
159
|
+
- lib/deprec/templates/nagios/templates.cfg.erb
|
160
|
+
- lib/deprec/templates/nagios/timeperiods.cfg.erb
|
161
|
+
- lib/deprec/templates/network
|
162
|
+
- lib/deprec/templates/network/hostname.erb
|
163
|
+
- lib/deprec/templates/network/hosts.erb
|
164
|
+
- lib/deprec/templates/network/interfaces.erb
|
165
|
+
- lib/deprec/templates/network/resolv.conf.erb
|
166
|
+
- lib/deprec/templates/nginx
|
167
|
+
- lib/deprec/templates/nginx/logrotate.conf.erb
|
168
|
+
- lib/deprec/templates/nginx/mime.types.erb
|
169
|
+
- lib/deprec/templates/nginx/nginx-init-script
|
170
|
+
- lib/deprec/templates/nginx/nginx.conf.erb
|
171
|
+
- lib/deprec/templates/nginx/nginx.logrotate.d
|
172
|
+
- lib/deprec/templates/nginx/nothing.conf
|
173
|
+
- lib/deprec/templates/nginx/rails_nginx_vhost.conf.erb
|
174
|
+
- lib/deprec/templates/ntp
|
175
|
+
- lib/deprec/templates/ntp/ntp.conf.erb
|
176
|
+
- lib/deprec/templates/passenger
|
177
|
+
- lib/deprec/templates/passenger/apache_vhost.erb
|
178
|
+
- lib/deprec/templates/passenger/passenger.conf.erb
|
179
|
+
- lib/deprec/templates/passenger/passenger.load.erb
|
180
|
+
- lib/deprec/templates/postfix
|
181
|
+
- lib/deprec/templates/postfix/aliases.erb
|
182
|
+
- lib/deprec/templates/postfix/dynamicmaps.cf.erb
|
183
|
+
- lib/deprec/templates/postfix/main.cf.erb
|
184
|
+
- lib/deprec/templates/postfix/master.cf.erb
|
185
|
+
- lib/deprec/templates/sphinx
|
186
|
+
- lib/deprec/templates/sphinx/monit.conf.erb
|
187
|
+
- lib/deprec/templates/ssh
|
188
|
+
- lib/deprec/templates/ssh/ssh_config.erb
|
189
|
+
- lib/deprec/templates/ssh/sshd_config.erb
|
190
|
+
- lib/deprec/templates/ssl
|
191
|
+
- lib/deprec/templates/ssl/make-ssl-cert
|
192
|
+
- lib/deprec/templates/ssl/ssl-cert-snakeoil.key
|
193
|
+
- lib/deprec/templates/ssl/ssl-cert-snakeoil.pem
|
194
|
+
- lib/deprec/templates/starling
|
195
|
+
- lib/deprec/templates/starling/monit.conf.erb
|
196
|
+
- lib/deprec/templates/starling/starling-init-script.erb
|
197
|
+
- lib/deprec/templates/subversion
|
198
|
+
- lib/deprec/templates/subversion/svn.apache.vhost.erb
|
199
|
+
- lib/deprec/templates/trac
|
200
|
+
- lib/deprec/templates/trac/apache_vhost.conf.erb
|
201
|
+
- lib/deprec/templates/trac/nginx_vhost.conf.erb
|
202
|
+
- lib/deprec/templates/trac/trac.ini.erb
|
203
|
+
- lib/deprec/templates/trac/trac_deprec.png
|
204
|
+
- lib/deprec/templates/trac/tracd-init.erb
|
205
|
+
- lib/deprec/templates/trac/users.htdigest.erb
|
206
|
+
- lib/deprec/templates/vnstat
|
207
|
+
- lib/deprec/templates/vnstat/config.php
|
208
|
+
- lib/deprec/templates/wordpress
|
209
|
+
- lib/deprec/templates/wordpress/apache2_wordpress_vhost.conf.erb
|
210
|
+
- lib/deprec/templates/wordpress/wp-config.php.erb
|
211
|
+
- lib/deprec/templates/wpmu
|
212
|
+
- lib/deprec/templates/wpmu/apache_vhost.conf.erb
|
213
|
+
- lib/deprec/templates/xen
|
214
|
+
- lib/deprec/templates/xen/network-bridge-wrapper
|
215
|
+
- lib/deprec/templates/xen/xend-config.sxp.erb
|
216
|
+
- lib/deprec/templates/xen/xend-init.erb
|
217
|
+
- lib/deprec/templates/xen/xendomains.erb
|
218
|
+
- lib/deprec/templates/xentools
|
219
|
+
- lib/deprec/templates/xentools/15-disable-hwclock
|
220
|
+
- lib/deprec/templates/xentools/40-setup-networking
|
221
|
+
- lib/deprec/templates/xentools/xen-tools.conf.erb
|
222
|
+
- lib/deprec/templates/xentools/xm.tmpl.erb
|
85
223
|
- lib/deprec.rb
|
86
|
-
-
|
224
|
+
- lib/deprec_cmd_completion.sh
|
225
|
+
- lib/vmbuilder_plugins
|
226
|
+
- lib/vmbuilder_plugins/all.rb
|
227
|
+
- lib/vmbuilder_plugins/apt.rb
|
228
|
+
- lib/vmbuilder_plugins/emerge.rb
|
229
|
+
- lib/vmbuilder_plugins/gem.rb
|
230
|
+
- lib/vmbuilder_plugins/std.rb
|
231
|
+
- CHANGELOG
|
232
|
+
- COPYING
|
233
|
+
- LICENSE
|
234
|
+
- README
|
235
|
+
- THANKS
|
87
236
|
has_rdoc: false
|
88
|
-
homepage:
|
237
|
+
homepage: http://www.deprec.org/
|
89
238
|
post_install_message:
|
90
239
|
rdoc_options: []
|
91
240
|
|
@@ -105,8 +254,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
254
|
version:
|
106
255
|
requirements: []
|
107
256
|
|
108
|
-
rubyforge_project:
|
109
|
-
rubygems_version: 1.1
|
257
|
+
rubyforge_project: deprec
|
258
|
+
rubygems_version: 1.3.1
|
110
259
|
signing_key:
|
111
260
|
specification_version: 2
|
112
261
|
summary: deployment recipes for capistrano
|
data/bin/deprec
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
begin
|
4
|
-
require 'rubygems'
|
5
|
-
rescue LoadError
|
6
|
-
# no rubygems to load, so we fail silently
|
7
|
-
end
|
8
|
-
|
9
|
-
require 'optparse'
|
10
|
-
|
11
|
-
@options = {}
|
12
|
-
OptionParser.new do |opts|
|
13
|
-
opts.banner = "Usage: #{$0} [options] [args]"
|
14
|
-
|
15
|
-
opts.on("-A", "--apply-to DIRECTORY",
|
16
|
-
"Create a minimal set of scripts and recipes",
|
17
|
-
"for use with capistrano to configure servers."
|
18
|
-
) { |value| @options[:apply_to] = value }
|
19
|
-
opts.on("-n", "--name APPLICATION_NAME",
|
20
|
-
"Name of application."
|
21
|
-
) { |value| @options[:application] = value }
|
22
|
-
opts.on("-d", "--domain DOMAIN_NAME",
|
23
|
-
"Domain name for application."
|
24
|
-
) { |value| @options[:domain] = value }
|
25
|
-
|
26
|
-
if ARGV.empty?
|
27
|
-
puts opts
|
28
|
-
exit
|
29
|
-
else
|
30
|
-
opts.parse!(ARGV)
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
require 'deprec/generators/loader'
|
35
|
-
Deprec::Generators::RailsLoader.load! @options
|
data/docs/README.slicehost
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
== Slicehost specific notes for deprec
|
2
|
-
|
3
|
-
# Slicehost provides you with root login and password for your slice.
|
4
|
-
|
5
|
-
# Change the root password!
|
6
|
-
cap change_root_password_as_root # '_as_root' means run this as 'root' user
|
7
|
-
|
8
|
-
# Create an account with sudo access
|
9
|
-
cap setup_admin_account_as_root
|
10
|
-
|
11
|
-
# Copy your ssh keys to remote server to avoid having to type passwords
|
12
|
-
cap setup_ssh_keys
|
13
|
-
|
14
|
-
now read README.quickstart
|
data/docs/README.svn_trac
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
== svn and trac
|
2
|
-
|
3
|
-
Installs subversion and trac software on server.
|
4
|
-
Creates subversion repository on server and imports project.
|
5
|
-
Sets up trac installation for project.
|
6
|
-
|
7
|
-
role :scm, 'deptest.deprecated.org'
|
8
|
-
|
9
|
-
# install packages
|
10
|
-
cap apache_install svn_install trac_install
|
11
|
-
|
12
|
-
# import project
|
13
|
-
cap svn_import_project
|
14
|
-
cap trac_init
|
15
|
-
cap trac_start
|
16
|
-
|
17
|
-
# your project will be viewable at http://yourdomain:8000/
|
18
|
-
# you can add other users with 'cap trac_user_add'
|
19
|
-
|
@@ -1,89 +0,0 @@
|
|
1
|
-
|
2
|
-
class Capistrano::Actor
|
3
|
-
|
4
|
-
##
|
5
|
-
# Run a command and ask for input when input_query is seen.
|
6
|
-
# Sends the response back to the server.
|
7
|
-
#
|
8
|
-
# +input_query+ is a regular expression that defaults to /^Password/.
|
9
|
-
#
|
10
|
-
# Can be used where +run+ would otherwise be used.
|
11
|
-
#
|
12
|
-
# run_with_input 'ssh-keygen ...', /^Are you sure you want to overwrite\?/
|
13
|
-
|
14
|
-
def run_with_input(shell_command, input_query=/^Password/)
|
15
|
-
handle_command_with_input(:run, shell_command, input_query)
|
16
|
-
end
|
17
|
-
|
18
|
-
##
|
19
|
-
# Run a command using sudo and ask for input when a regular expression is seen.
|
20
|
-
# Sends the response back to the server.
|
21
|
-
#
|
22
|
-
# See also +run_with_input+
|
23
|
-
#
|
24
|
-
# +input_query+ is a regular expression
|
25
|
-
|
26
|
-
def sudo_with_input(shell_command, input_query=/^Password/)
|
27
|
-
handle_command_with_input(:sudo, shell_command, input_query)
|
28
|
-
end
|
29
|
-
|
30
|
-
##
|
31
|
-
# Run a command using sudo and continuously pipe the results back to the console.
|
32
|
-
#
|
33
|
-
# Similar to the built-in +stream+, but for privileged users.
|
34
|
-
|
35
|
-
def sudo_stream(command)
|
36
|
-
sudo(command) do |ch, stream, out|
|
37
|
-
puts out if stream == :out
|
38
|
-
if stream == :err
|
39
|
-
puts "[err : #{ch[:host]}] #{out}"
|
40
|
-
break
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
##
|
46
|
-
# Run a command using the root account.
|
47
|
-
#
|
48
|
-
# Some linux distros/VPS providers only give you a root login when you install.
|
49
|
-
|
50
|
-
def run_as_root(shell_command)
|
51
|
-
std.connect_as_root do |tempuser|
|
52
|
-
run shell_command
|
53
|
-
end
|
54
|
-
end
|
55
|
-
|
56
|
-
##
|
57
|
-
# Run a task using root account.
|
58
|
-
#
|
59
|
-
# Some linux distros/VPS providers only give you a root login when you install.
|
60
|
-
#
|
61
|
-
# tempuser: contains the value replaced by 'root' for the duration of this call
|
62
|
-
|
63
|
-
def as_root()
|
64
|
-
std.connect_as_root do |tempuser|
|
65
|
-
yield tempuser
|
66
|
-
end
|
67
|
-
end
|
68
|
-
|
69
|
-
private
|
70
|
-
|
71
|
-
|
72
|
-
##
|
73
|
-
# Does the actual capturing of the input and streaming of the output.
|
74
|
-
#
|
75
|
-
# local_run_method: run or sudo
|
76
|
-
# shell_command: The command to run
|
77
|
-
# input_query: A regular expression matching a request for input: /^Please enter your password/
|
78
|
-
|
79
|
-
def handle_command_with_input(local_run_method, shell_command, input_query)
|
80
|
-
send(local_run_method, shell_command) do |channel, stream, data|
|
81
|
-
logger.info data, channel[:host]
|
82
|
-
if data =~ input_query
|
83
|
-
pass = ::Capistrano::CLI.password_prompt "#{data}:"
|
84
|
-
channel.send_data "#{pass}\n"
|
85
|
-
end
|
86
|
-
end
|
87
|
-
end
|
88
|
-
|
89
|
-
end
|