teleport 1.0.9 → 1.0.10

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -6,7 +6,7 @@ Teleport strives to be **idempotent** - you can run it repeatedly without changi
6
6
 
7
7
  Teleport is great for managing a small number of hosted machines, either dedicated or in the cloud. Due to it's opinionated nature and limited scope you may find that it works better for you than other, more complicated tools.
8
8
 
9
- At the moment Teleport supports **Ubuntu 10.04/10.10/11.04/11.10/12.04 with Ruby 1.8.7, 1.9.2, 1.9.3, or [REE](http://www.rubyenterpriseedition.com/)**.
9
+ At the moment Teleport supports **Ubuntu 10.04/10.10/11.04/11.10/12.04/12.10 with Ruby 1.8.7, 1.9.2, 1.9.3, or [REE](http://www.rubyenterpriseedition.com/)**.
10
10
 
11
11
  ## Getting Started
12
12
 
@@ -14,45 +14,45 @@ At the moment Teleport supports **Ubuntu 10.04/10.10/11.04/11.10/12.04 with Ruby
14
14
 
15
15
  ```
16
16
  $ sudo gem install teleport
17
- ```
18
-
17
+ ```
18
+
19
19
  1. Create a `Telfile` config file. Here's a simple example. Note that we actually define two machines, `server_app1` and `server_db1`:
20
20
 
21
21
  ```
22
22
  $ mkdir ~/teleport
23
23
  $ cd ~/teleport
24
24
  ```
25
-
25
+
26
26
  Put this into `~/teleport/Telfile`:
27
-
27
+
28
28
  ``` ruby
29
29
  user "admin"
30
30
  ruby "1.9.3"
31
- apt "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen", :key => "7F0CAB10"
31
+ apt "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen", :key => "7F0CAB10"
32
32
  role :app, :packages => [:memcached]
33
33
  role :db, :packages => [:mongodb-10gen]
34
34
  server "server_app1", :role => :app
35
- server "server_db1", :role => :db
35
+ server "server_db1", :role => :db
36
36
  packages [:atop, :emacs, :gcc]
37
37
  ```
38
-
38
+
39
39
  1. You'll want to copy files to your new machines too. Put the files into your teleport directory. For example, maybe you want to automatically have your `.bashrc` and `.emacs` files copied to your new server. You'll want the `memcached` and `mongodb` config files too. Here's what your teleport directory should look like:
40
40
 
41
41
  ```
42
42
  Telfile
43
43
  files/home/admin/.bashrc
44
- files/home/admin/.emacs
44
+ files/home/admin/.emacs
45
45
  files_app/etc/default/memcached
46
46
  files_app/etc/memcached.conf
47
47
  files_db/etc/mongodb.conf
48
48
  ```
49
-
49
+
50
50
  1. Now run Teleport:
51
51
 
52
52
  ```
53
53
  $ teleport server_app1
54
54
  ```
55
-
55
+
56
56
  Teleport will ssh to the machine and set it up per your instructions.
57
57
 
58
58
  ## Full Documentation
@@ -60,4 +60,3 @@ Teleport will ssh to the machine and set it up per your instructions.
60
60
  Full docs are in the wiki:
61
61
 
62
62
  https://github.com/gurgeous/teleport/wiki
63
-
data/lib/teleport/run.sh CHANGED
@@ -56,7 +56,9 @@ function install_rubygems() {
56
56
  wget http://production.cf.rubygems.org/rubygems/rubygems-$CONFIG_RUBYGEMS.tgz
57
57
  tar xfpz rubygems-$CONFIG_RUBYGEMS.tgz
58
58
  (cd rubygems-$CONFIG_RUBYGEMS ; ruby setup.rb)
59
- ln -s /usr/bin/gem1.8 /usr/bin/gem
59
+ if [ ! -f /usr/bin/gem ] ; then
60
+ ln -s /usr/bin/gem1.8 /usr/bin/gem
61
+ fi
60
62
  }
61
63
 
62
64
  #
@@ -98,7 +100,7 @@ function install_ruby_192() {
98
100
  --slave /usr/local/bin/rdoc rdoc /usr/local/bin/rdoc192
99
101
  }
100
102
 
101
- function install_ruby_193() {
103
+ function install_ruby_193_src() {
102
104
  local patch=p286
103
105
 
104
106
  install_ruby_19_requirements
@@ -127,6 +129,18 @@ function install_ruby_193() {
127
129
  --slave /usr/local/bin/rdoc rdoc /usr/local/bin/rdoc193
128
130
  }
129
131
 
132
+ function install_ruby_193_pkg() {
133
+ apt-get -y install ruby1.9.3
134
+ }
135
+
136
+ function install_ruby_193() {
137
+ if [ "${DISTRIB_RELEASE//[.]/}" -lt "1204" ] ; then
138
+ install_ruby_193_src
139
+ else
140
+ install_ruby_193_pkg
141
+ fi
142
+ }
143
+
130
144
  function install_ruby_ree() {
131
145
  local ree="ruby-enterprise_1.8.7-2012.02_${ARCH}_ubuntu10.04.deb"
132
146
 
@@ -153,7 +167,7 @@ fi
153
167
  # which version?
154
168
  . /etc/lsb-release
155
169
  case $DISTRIB_RELEASE in
156
- 10.* | 11.* | 12.04 ) ;; # nop
170
+ 10.* | 11.* | 12.04 | 12.10 ) ;; # nop
157
171
  *)
158
172
  banner "warning - Ubuntu $DISTRIB_RELEASE hasn't been tested with Teleport yet"
159
173
  esac
@@ -1,4 +1,4 @@
1
1
  module Teleport
2
2
  # Gem version
3
- VERSION = "1.0.9"
3
+ VERSION = "1.0.10"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teleport
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-15 00:00:00.000000000 Z
12
+ date: 2012-10-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: amazon-ec2
@@ -136,7 +136,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
136
136
  version: '0'
137
137
  segments:
138
138
  - 0
139
- hash: -4476656226626324211
139
+ hash: -3354560218731249117
140
140
  required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  none: false
142
142
  requirements:
@@ -145,10 +145,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  version: '0'
146
146
  segments:
147
147
  - 0
148
- hash: -4476656226626324211
148
+ hash: -3354560218731249117
149
149
  requirements: []
150
150
  rubyforge_project: teleport
151
- rubygems_version: 1.8.21
151
+ rubygems_version: 1.8.24
152
152
  signing_key:
153
153
  specification_version: 3
154
154
  summary: Teleport - opinionated Ubuntu server setup with Ruby.