cluster 0.7.6 → 0.7.8

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/instance_setup.sh CHANGED
@@ -2,6 +2,7 @@
2
2
  # codename=$(lsb_release -cs)
3
3
 
4
4
  sed -i "/^# deb.*multiverse/ s/^# //" /etc/apt/sources.list
5
+
5
6
  gpg --keyserver keyserver.ubuntu.com --recv-key 40976EAF437D05B5
6
7
  gpg --keyserver keyserver.ubuntu.com --recv-key 3B4FE6ACC0B21F32
7
8
  gpg -a --export 40976EAF437D05B5 | sudo apt-key add -
@@ -114,6 +115,8 @@ gem 'passenger'
114
115
  gem 'cluster'
115
116
  gem 'interactive_editor'
116
117
  gem 'bundler'
118
+ gem 'god'
119
+ gem 'madmimi'
117
120
  EOF
118
121
  bundle install --system --gemfile=/etc/bundler/Gemfile --binstubs=/usr/local/bin
119
122
 
@@ -25,7 +25,7 @@ class Amazon < Infrastructure
25
25
  @options.owner ||= ENV['AMAZON_OWNER_ID']
26
26
  @options.cluster_bucket ||= ENV['CLUSTER_BUCKET']
27
27
  @options.bucket_key ||= 'cluster_credentials.yml'
28
- @options.zones ||= if ENV['AMAZON_ZONE'].empty?
28
+ @options.zones ||= if !ENV['AMAZON_ZONE'] or ENV['AMAZON_ZONE'].empty?
29
29
  nil
30
30
  else
31
31
  Array(ENV['AMAZON_ZONE'])
@@ -575,12 +575,14 @@ class Amazon < Infrastructure
575
575
  end
576
576
  end
577
577
 
578
-
579
578
  class << self
580
579
  def to_sdb_attributes(args)
581
580
  attrs = {}
582
581
  # FIXME this needs a way to deal with arrays that are empty
583
582
  args.each do |k, v|
583
+ # FIXME we probably should have some extra indicator of a
584
+ # time field so that we can unmarshal it in the #from_sdb_results
585
+ v = v.utc.httpdate if Time === v
584
586
  v and attrs.merge!(k => Array(v))
585
587
  end
586
588
  attrs
@@ -600,7 +602,7 @@ class Amazon < Infrastructure
600
602
  n.merge attr => val
601
603
  end
602
604
  }
603
-
605
+
604
606
  m << args
605
607
  }
606
608
  end
@@ -5,7 +5,7 @@ class Cluster
5
5
 
6
6
  class << self
7
7
  def version
8
- '0.7.6'
8
+ '0.7.8'
9
9
  end
10
10
  end
11
11
  end
data/user_data_web.sh CHANGED
@@ -1,4 +1,10 @@
1
1
  #!/bin/bash
2
+ apt-get -y install --reinstall debian-keyring debian-archive-keyring
3
+ gpg --keyserver hkp://keyserver.ubuntu.com:80/ --recv-key 40976EAF437D05B5
4
+ gpg --keyserver hkp://keyserver.ubuntu.com:80/ --recv-key 3B4FE6ACC0B21F32
5
+ gpg -a --export 40976EAF437D05B5 | apt-key add -
6
+ gpg -a --export 3B4FE6ACC0B21F32 | apt-key add -
7
+
2
8
  FRIENDLY=noble
3
9
  SERVICES=web
4
10
  PASSPHRASE='nope'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cluster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.6
4
+ version: 0.7.8
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: 2013-01-17 00:00:00.000000000 Z
12
+ date: 2013-02-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: uuidtools