deprec 3.1.0.rc13 → 3.1.0.rc15

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,6 +1,11 @@
1
1
  deprec changelog
2
2
  ================
3
3
 
4
+ = 3.1.0.rc14 (Jul 28, 2011)
5
+
6
+ * Set default roles for apache and git recipes
7
+ * Move rubygem dependencies out into deprec-core
8
+
4
9
  = 3.1.0.rc13 (Jul 22, 2011)
5
10
 
6
11
  * temp fix - canonical service names not working
@@ -5,7 +5,7 @@ The rack recipes should work with any rack app.
5
5
 
6
6
  *Quickstart*
7
7
 
8
- $ cap deprec:rack:install_stack
8
+ $ cap deprec:rack:install_stack HOSTS=mbailey@lucid
9
9
 
10
10
  $ cd your_rails_app
11
11
  $ depify .
@@ -15,9 +15,9 @@ The rack recipes should work with any rack app.
15
15
  # database server that has already been installed.
16
16
  $ cap deprec:db:install
17
17
 
18
- $ cap deploy:setup HOSTS=mbailey@uat
18
+ $ cap deploy:setup HOSTS=mbailey@lucid
19
19
 
20
- $ cap deprec:rack:config HOSTS=mbailey@uat
20
+ $ cap deprec:rack:config HOSTS=mbailey@lucid
21
21
 
22
22
  # ssh to git@github.com from uat and accept hostkey
23
23
  $ cap deploy
@@ -14,7 +14,7 @@ Capistrano::Configuration.instance(:must_exist).load do
14
14
  %w(rewrite ssl proxy_balancer proxy_http deflate expires headers)
15
15
 
16
16
  desc "Install Apache"
17
- task :install do
17
+ task :install, :roles => :web do
18
18
  apt.install(
19
19
  {:base => %w(apache2-mpm-prefork apache2-prefork-dev rsync ssl-cert)},
20
20
  :stable )
@@ -84,7 +84,7 @@ Capistrano::Configuration.instance(:must_exist).load do
84
84
  end
85
85
 
86
86
  # Stub so generic tasks don't fail (e.g. deprec:web:config_project)
87
- task :config_project do
87
+ task :config_project, :roles => :web do
88
88
  # XXX Need to flesh out generation of custom certs
89
89
  # In the meantime we'll just use the snakeoil cert
90
90
  #
@@ -152,7 +152,7 @@ Capistrano::Configuration.instance(:must_exist).load do
152
152
  }
153
153
  set :apache_vhost_rack_env, false
154
154
  #
155
- task :vhost do
155
+ task :vhost, :roles => :web do
156
156
  file = {
157
157
  :template => 'vhost.erb',
158
158
  :path => "/etc/apache2/sites-available/#{apache_vhost_domain}",
@@ -5,7 +5,7 @@ Capistrano::Configuration.instance(:must_exist).load do
5
5
 
6
6
  # Ubuntu lucid has a new enough version of git
7
7
  desc "Install git"
8
- task :install do
8
+ task :install, :roles => :app do
9
9
  apt.install( {:base => %w(git-core)}, :stable )
10
10
  end
11
11
 
@@ -4,16 +4,16 @@ Capistrano::Configuration.instance(:must_exist).load do
4
4
  namespace :deprec do
5
5
  namespace :mri do
6
6
 
7
- SRC_PACKAGES['ruby-1.8.7-p330'] = {
8
- :md5sum => "50a49edb787211598d08e756e733e42e ruby-1.8.7-p330.tar.gz",
9
- :url => "ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p330.tar.gz",
7
+ SRC_PACKAGES['ruby-1.8.7-p352'] = {
8
+ :md5sum => "0c33f663a10a540ea65677bb755e57a7 ruby-1.8.7-p352.tar.gz",
9
+ :url => "http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p352.tar.gz",
10
10
  :deps => %w(zlib1g-dev libssl-dev libncurses5-dev libreadline5-dev),
11
11
  :configure => "./configure --with-readline-dir=/usr/local;"
12
12
  }
13
13
 
14
- SRC_PACKAGES['ruby-1.9.2-p180'] = {
15
- :md5sum => "0d6953820c9918820dd916e79f4bfde8 ruby-1.9.2-p180.tar.gz",
16
- :url => "http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p180.tar.gz",
14
+ SRC_PACKAGES['ruby-1.9.2-p290'] = {
15
+ :md5sum => "604da71839a6ae02b5b5b5e1b792d5eb ruby-1.9.2-p290.tar.gz",
16
+ :url => "http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz",
17
17
  :deps => %w(zlib1g-dev libssl-dev libncurses5-dev libreadline5-dev),
18
18
  :configure => "./configure",
19
19
  :post_install => 'sudo gem update --system'
@@ -8,20 +8,20 @@ Capistrano::Configuration.instance(:must_exist).load do
8
8
  desc "Install Rack stack on Ubuntu server (8.04, 10.04)"
9
9
  task :install_stack do
10
10
  top.deprec.git.install
11
- top.deprec.ruby.install # Uses ruby_vm_type
11
+ # top.deprec.ruby.install # Uses ruby_vm_type
12
+ top.deprec.mri.install # Uses ruby_vm_type
12
13
  gem2.install 'bundler'
13
- # Some things Rails needs
14
- apt.install( { :base => %w(libmysqlclient15-dev sqlite3 libsqlite3-ruby libsqlite3-dev libpq-dev) }, :stable)
15
-
14
+ install_rails_deps
16
15
  # XXX temporary fix
17
16
  # top.deprec.web.install # Uses web_server_type
18
17
  # top.deprec.app.install # Uses app_server_type
19
18
  top.deprec.apache.install
20
19
  top.deprec.passenger.install
21
-
22
- # top.deprec.rails.install
23
20
  top.deprec.logrotate.install
24
- # top.deprec.monit.install # Not using monit lately
21
+ end
22
+
23
+ task :install_rails_deps, :roles => :app do
24
+ apt.install( { :base => %w(libmysqlclient15-dev sqlite3 libsqlite3-ruby libsqlite3-dev libpq-dev) }, :stable)
25
25
  end
26
26
 
27
27
  desc "Generate config files for rack app."
@@ -10,7 +10,7 @@ function sshdel { perl -i -n -e "print unless (\$. == $1)" ~/.ssh/known_hosts; }
10
10
  #########
11
11
 
12
12
  # Show disk usage in current directory
13
- alias dus='du -sm * | sort -n'
13
+ alias dm='du -sm * | sort -n'
14
14
 
15
15
  # ls
16
16
  alias ll='ls -alF'
@@ -36,3 +36,12 @@ alias tc='time curl -s -o /dev/null'
36
36
  alias irb="irb -I '.' -rubygems"
37
37
 
38
38
  alias ssm="ssh -l $USER"
39
+
40
+ # Load bash completion
41
+ . /etc/bash_completion
42
+
43
+ # Prompt
44
+ parse_git_branch() {
45
+ git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
46
+ }
47
+ PS1="\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\u@\h:\w \$(parse_git_branch)\$ "
@@ -1,3 +1,3 @@
1
1
  module Deprec
2
- VERSION = "3.1.0.rc13"
2
+ VERSION = "3.1.0.rc15"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deprec
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.rc13
4
+ version: 3.1.0.rc15
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,12 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-07-22 00:00:00.000000000 +10:00
12
+ date: 2011-07-28 00:00:00.000000000 +10:00
13
13
  default_executable: depify
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: deprec-core
17
- requirement: &9817220 !ruby/object:Gem::Requirement
17
+ requirement: &18296880 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,29 +22,7 @@ dependencies:
22
22
  version: 3.1.7
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *9817220
26
- - !ruby/object:Gem::Dependency
27
- name: capistrano
28
- requirement: &9816720 !ruby/object:Gem::Requirement
29
- none: false
30
- requirements:
31
- - - ! '>='
32
- - !ruby/object:Gem::Version
33
- version: 2.6.0
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: *9816720
37
- - !ruby/object:Gem::Dependency
38
- name: capistrano-ext
39
- requirement: &9816240 !ruby/object:Gem::Requirement
40
- none: false
41
- requirements:
42
- - - ! '>='
43
- - !ruby/object:Gem::Version
44
- version: 1.2.1
45
- type: :runtime
46
- prerelease: false
47
- version_requirements: *9816240
25
+ version_requirements: *18296880
48
26
  description: ! " This project provides Capistrano and Rake tasks to \n assist
49
27
  with deployment and configuration management\n on ubuntu linux servers.\n"
50
28
  email: mike@bailey.net.au
@@ -66,7 +44,6 @@ files:
66
44
  - docs/deprec-1.x/notes.txt
67
45
  - docs/README.nagios
68
46
  - docs/windows_linux.txt
69
- - docs/EXAMPLE-installing_tracks.txt
70
47
  - docs/xen/xen-tools-notes.txt
71
48
  - docs/xen/xen_on_hardy.txt
72
49
  - docs/xen/traffic_monitoring_with_vnstat.txt
@@ -1,41 +0,0 @@
1
- #
2
- # Install tracks locally
3
- #
4
- git clone git://github.com/bsag/tracks.git
5
- cd tracks
6
-
7
- cp config/database.yml.tmpl config/database.yml
8
- cp config/site.yml.tmpl config/site.yml
9
- cp -r log.tmpl log -u
10
- rake db:create
11
- rake db:migrate
12
- ./script/server # Test locally
13
-
14
-
15
- #
16
- # Install deprec
17
- #
18
- sudo gem install deprec
19
- cap deprec:users:passwd HOSTS=192.168.0.135 USER=root # Change root password
20
- cap deprec:users:add HOSTS=192.168.0.135 USER=root # Add personal account
21
-
22
-
23
- #
24
- # Create deploy.rb file for tracks
25
- #
26
- depify .
27
- curl -o config/deploy.rb http://mbailey.github.com/deprec/deploy.rb-tracks
28
- # Edit config/deploy.rb specifying the domain name to serve the app on.
29
-
30
-
31
- #
32
- # Install on remote server
33
- #
34
-
35
- cap deprec:rails:install_stack
36
- cap deprec:db:install
37
- cap deploy:setup
38
- cap deploy
39
- cap deploy:migrate
40
-
41
- # Tracks is now running on your server. Enjoy!