bcalloway-slicehost 0.5.2 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,19 @@
1
+ namespace :istat do
2
+ desc "Setup istat daemon for monitoring with iStat for iPhone."
3
+ task :setup, :roles => :web do
4
+ sudo "aptitude install g++ libxml-dev build-essential"
5
+ run "wget http://github.com/downloads/tiwilliam/istatd/istatd-0.5.7.tar.gz -O /home/#{user}"
6
+ run "tar -zxvf /home/#{user}/istatd-0.5.7.tar.gz"
7
+ run "/home/#{user}/istatd-0.5.7/configure"
8
+ run "/home/#{user}/istatd-0.5.7/make"
9
+ sudo "/home/#{user}/istatd-0.5.7/make install"
10
+ sudo "useradd istat"
11
+ sudo "mkdir /var/run/istat"
12
+ sudo "chown istat /var/run/istat"
13
+ sudo "/usr/local/bin/istatd -d"
14
+ put render("istatdlauncher", binding), "istatdlauncher"
15
+ sudo "mv istatdlauncher /etc/init.d/istatdlauncer"
16
+ sudo "chmod +x /etc/init.d/istatdlauncher"
17
+ sudo "update-rc.d istatdlauncher defaults"
18
+ end
19
+ end
@@ -14,6 +14,8 @@
14
14
  # You can modify this to only allow certain traffic
15
15
  -A OUTPUT -j ACCEPT
16
16
 
17
+ # Allows connection to iStat
18
+ -A INPUT -p tcp -m tcp --dport 5109 -j ACCEPT
17
19
 
18
20
  # Allows HTTP and HTTPS connections from anywhere (the normal ports for websites)
19
21
  -A INPUT -p tcp --dport 80 -j ACCEPT
@@ -0,0 +1,2 @@
1
+ !#/bin/sh
2
+ /usr/local/bin/istatd -d
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 5
8
- - 2
9
- version: 0.5.2
7
+ - 6
8
+ - 0
9
+ version: 0.6.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Joshua Peek, Brandon Calloway
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-28 00:00:00 -04:00
17
+ date: 2010-04-29 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -49,6 +49,7 @@ files:
49
49
  - lib/capistrano/ext/slicehost/gems.rb
50
50
  - lib/capistrano/ext/slicehost/git.rb
51
51
  - lib/capistrano/ext/slicehost/iptables.rb
52
+ - lib/capistrano/ext/slicehost/istat.rb
52
53
  - lib/capistrano/ext/slicehost/mysql.rb
53
54
  - lib/capistrano/ext/slicehost/nginx.rb
54
55
  - lib/capistrano/ext/slicehost/postgresql.rb
@@ -59,6 +60,7 @@ files:
59
60
  - lib/capistrano/ext/slicehost/ssh.rb
60
61
  - lib/capistrano/ext/slicehost/templates/bashrc.erb
61
62
  - lib/capistrano/ext/slicehost/templates/iptables.erb
63
+ - lib/capistrano/ext/slicehost/templates/istatdlauncher.erb
62
64
  - lib/capistrano/ext/slicehost/templates/mydircolors.erb
63
65
  - lib/capistrano/ext/slicehost/templates/nanorc.erb
64
66
  - lib/capistrano/ext/slicehost/templates/passenger.conf.erb