bcalloway-slicehost 0.6.0 → 0.6.1

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.
data/README CHANGED
@@ -12,6 +12,12 @@ The recipes are designed to work stand alone apart from the standard set of Capi
12
12
 
13
13
  require 'capistrano/ext/slicehost' in your deploy.rb file
14
14
 
15
+ Note
16
+ ===================
17
+ You may need to install mysql manually:
18
+ sudo "aptitude install -y mysql-server mysql-client libmysqlclient15-dev"
19
+ sudo "aptitude install -y libmysql-ruby1.8"
20
+
15
21
  Slice setup recipes
16
22
  ====================
17
23
 
@@ -116,6 +122,7 @@ cap gems:update # Update gems on remote server
116
122
  cap gems:update_system # Update gem system on remote server
117
123
  cap git:install # Install git
118
124
  cap iptables:configure # Harden iptables configuration.
125
+ cap istat:setup # Setup istat daemon for monitoring with iStat for iPhone.
119
126
  cap mysql:export # Export MySQL database
120
127
  cap mysql:import # Import MySQL database
121
128
  cap mysql:install # Install MySQL
@@ -71,7 +71,7 @@ namespace :aptitude do
71
71
  end
72
72
 
73
73
  desc <<-DESC
74
- Updates software packages and creates "a solid base for the 'meat' of the \
74
+ Installs aptitude, updates software packages and creates "a solid base for the 'meat' of the \
75
75
  server". This task should be run only once when you are first setting up your \
76
76
  new slice.
77
77
 
@@ -89,6 +89,7 @@ namespace :aptitude do
89
89
  # sudo "/usr/sbin/update-locale LANG=#{language}"
90
90
  safe_upgrade
91
91
  full_upgrade
92
+ sudo "apt-get install -y aptitude"
92
93
  sudo "aptitude install -y build-essential"
93
94
  end
94
95
  end
@@ -12,7 +12,7 @@ namespace :istat do
12
12
  sudo "chown istat /var/run/istat"
13
13
  sudo "/usr/local/bin/istatd -d"
14
14
  put render("istatdlauncher", binding), "istatdlauncher"
15
- sudo "mv istatdlauncher /etc/init.d/istatdlauncer"
15
+ sudo "mv istatdlauncher /etc/init.d/istatdlauncher"
16
16
  sudo "chmod +x /etc/init.d/istatdlauncher"
17
17
  sudo "update-rc.d istatdlauncher defaults"
18
18
  end
@@ -1,10 +1,23 @@
1
1
  namespace :slice do
2
- desc "set up ssh, iptables, aptitude and vim"
2
+ desc "set up ssh, iptables, aptitude, vim, and imagemagick"
3
3
  task :configure do
4
4
  ssh.setup
5
5
  profile.configure
6
6
  iptables.configure
7
7
  aptitude.setup
8
8
  vim.setup
9
+ imagemagick.install
10
+ end
11
+ end
12
+
13
+ namespace :imagemagick do
14
+ desc "Install ImageMagick"
15
+ task :install, :roles => :app do
16
+ sudo "aptitude install libxml2-dev libmagick9-dev imagemagick"
17
+ end
18
+
19
+ desc "Remove ImageMagick"
20
+ task :install, :roles => :app do
21
+ sudo "aptitude remove libxml2-dev libmagick9-dev imagemagick"
9
22
  end
10
23
  end
@@ -3,7 +3,7 @@
3
3
 
4
4
  # Allows all loopback (lo0) traffic and drop all traffic to 127/8 that doesn't use lo0
5
5
  -A INPUT -i lo -j ACCEPT
6
- -A INPUT -i ! lo -d 127.0.0.0/8 -j REJECT
6
+ -A INPUT ! -i lo -d 127.0.0.0/8 -j REJECT
7
7
 
8
8
 
9
9
  # Accepts all established inbound connections
@@ -15,7 +15,7 @@
15
15
  -A OUTPUT -j ACCEPT
16
16
 
17
17
  # Allows connection to iStat
18
- -A INPUT -p tcp -m tcp --dport 5109 -j ACCEPT
18
+ -A INPUT -p tcp --dport 5109 -j ACCEPT
19
19
 
20
20
  # Allows HTTP and HTTPS connections from anywhere (the normal ports for websites)
21
21
  -A INPUT -p tcp --dport 80 -j ACCEPT
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 6
8
- - 0
9
- version: 0.6.0
8
+ - 1
9
+ version: 0.6.1
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-29 00:00:00 -04:00
17
+ date: 2010-05-26 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency