brightbox-cli 1.3.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc0c3e235cd57b5a605e24ffcc76f96779fa3c5a
4
- data.tar.gz: 61743b4aa7a0e90c6700d665d6ce3ba6a9037fa8
3
+ metadata.gz: 9f15ee91bd1c543e0acf06d6d6b321d39cf55c5f
4
+ data.tar.gz: 4ff3baa0f0e74058d990551fe16d20fbf05880ba
5
5
  SHA512:
6
- metadata.gz: b8fb9c8762e8593c73e87e91ab319cda2d20598d1cbba673f6bcb0b7882c2898cfce6839b53e8503cd091bff67bd46485a96d07bb51d965e266bc93a3fb42805
7
- data.tar.gz: 0af4129467c02e2bfe3aeab0d6292ff3f9c550462263ce0a19d91d10f4e52508a9a12c641e04b64a2f506949780d3ba5baf06b47d69cec2a68fd2ae9bff6ff15
6
+ metadata.gz: 207e343f67923f2364eb6420a0b6690b7eacba02633704538ddeea17d6fcced117971c565340b0cc54f2b38501fd134b6794d84fe4f6c967c2d72cfde2a58971
7
+ data.tar.gz: fa211503da16460429e56fa0ed4cdd5bd5441f03d869a5f41adc00b966b39f5bfedd572ec63da1ebe80e659c5772e8d2900612933d4bbe0292ca54d3bd7b3c19
@@ -1,3 +1,13 @@
1
+ ### v1.4.0 / 2014-10-22
2
+ [Full Changelog](https://github.com/brightbox/brightbox-cli/compare/v1.3.0...v1.4.0)
3
+
4
+ Enhancements:
5
+
6
+ * Add `--buffer-size` argument to `lba create` to set the load balancers buffer
7
+ size used.
8
+ * Add switch to enable/disable SSLv3 on the load balancer. Disabled by default
9
+ on new load balancers it can be enabled with `--sslv3` when updating.
10
+
1
11
  ### v1.3.0 / 2014-08-20
2
12
  [Full Changelog](https://github.com/brightbox/brightbox-cli/compare/v1.2.2...v1.3.0)
3
13
 
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- brightbox-cli (1.3.0)
5
- fog-brightbox (~> 0.3)
4
+ brightbox-cli (1.4.0)
5
+ fog-brightbox (~> 0.6, >= 0.6.1)
6
6
  gli (~> 2.9)
7
7
  highline (~> 1.6)
8
8
  hirb (~> 0.6)
@@ -16,12 +16,12 @@ GEM
16
16
  builder (3.2.2)
17
17
  coderay (1.0.9)
18
18
  diff-lcs (1.2.5)
19
- excon (0.39.4)
20
- fog-brightbox (0.3.0)
19
+ excon (0.40.0)
20
+ fog-brightbox (0.6.1)
21
21
  fog-core (~> 1.22)
22
22
  fog-json
23
23
  inflecto
24
- fog-core (1.23.0)
24
+ fog-core (1.24.0)
25
25
  builder
26
26
  excon (~> 0.38)
27
27
  formatador (~> 0.2)
@@ -31,7 +31,7 @@ GEM
31
31
  fog-json (1.0.0)
32
32
  multi_json (~> 1.0)
33
33
  formatador (0.2.5)
34
- gli (2.12.0)
34
+ gli (2.12.2)
35
35
  highline (1.6.21)
36
36
  hirb (0.7.2)
37
37
  i18n (0.6.11)
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
20
20
  s.require_paths = ["lib"]
21
21
 
22
- s.add_dependency "fog-brightbox", "~> 0.3"
22
+ s.add_dependency "fog-brightbox", "~> 0.6", ">= 0.6.1"
23
23
  s.add_dependency "gli", "~> 2.9"
24
24
  s.add_dependency "i18n"
25
25
  s.add_dependency "mime-types", "~> 1.25"
@@ -23,6 +23,9 @@ module Brightbox
23
23
  c.desc "Healthcheck type. Defaults to first listener protocol."
24
24
  c.flag [:y, "hc-type"]
25
25
 
26
+ c.desc "Buffer Size. Defaults to 4096 bytes"
27
+ c.flag [:b, "buffer-size"]
28
+
26
29
  c.desc "Healthcheck timeout"
27
30
  c.default_value "5000"
28
31
  c.flag [:t, "hc-timeout"]
@@ -49,6 +52,9 @@ module Brightbox
49
52
  c.desc "Filepath to the private key used to sign SSL certificate (OpenSSL supported formats)."
50
53
  c.flag ["ssl-key"]
51
54
 
55
+ c.desc "Enable SSL v3 support"
56
+ c.switch ["sslv3"]
57
+
52
58
  c.action do |global_options, options, args|
53
59
 
54
60
  raise "You must specify which servers to balance connections to" if args.empty?
@@ -95,6 +101,7 @@ module Brightbox
95
101
  if ssl_cert_path.nil? ^ ssl_key_path.nil?
96
102
  raise "Both SSL arguments (ssl-cert and ssl-key) are required."
97
103
  end
104
+
98
105
  if ssl_cert_path && ssl_key_path
99
106
  ssl_cert = File.read(File.expand_path(ssl_cert_path))
100
107
  ssl_key = File.read(File.expand_path(ssl_key_path))
@@ -106,10 +113,12 @@ module Brightbox
106
113
  info msg
107
114
  lb = LoadBalancer.create(:policy => options[:policy],
108
115
  :name => options[:n],
116
+ :buffer_size => options[:b],
109
117
  :healthcheck => healthcheck,
110
118
  :listeners => listeners,
111
119
  :certificate_pem => ssl_cert,
112
120
  :certificate_private_key => ssl_key,
121
+ :sslv3 => options["sslv3"],
113
122
  :nodes => nodes)
114
123
  render_table([lb], global_options)
115
124
  end
@@ -22,6 +22,7 @@ module Brightbox
22
22
  :ssl_subject,
23
23
  :ssl_valid_from,
24
24
  :ssl_expires_at,
25
+ :ssl_v3_enabled,
25
26
  :cloud_ips,
26
27
  :nodes,
27
28
  :listeners,
@@ -21,6 +21,9 @@ module Brightbox
21
21
  c.desc "Healthcheck type"
22
22
  c.flag [:y, "hc-type"]
23
23
 
24
+ c.desc "Buffer Size. Defaults to 4096 bytes"
25
+ c.flag [:b, "buffer-size"]
26
+
24
27
  c.desc "Healthcheck timeout"
25
28
  c.flag [:t, "hc-timeout"]
26
29
 
@@ -45,6 +48,9 @@ module Brightbox
45
48
  c.desc "Clears SSL details from the load balancer."
46
49
  c.switch ["remove-ssl"], :negatable => false
47
50
 
51
+ c.desc "Enable SSL v3 support"
52
+ c.switch ["sslv3"]
53
+
48
54
  c.action do |global_options, options, args|
49
55
 
50
56
  lb_id = args.shift
@@ -93,6 +99,10 @@ module Brightbox
93
99
  lbopts[:policy] = options[:p]
94
100
  end
95
101
 
102
+ if options[:b]
103
+ lbopts[:buffer_size] = options[:b]
104
+ end
105
+
96
106
  # SSL argumens
97
107
  ssl_cert_path = options["ssl-cert"]
98
108
  ssl_key_path = options["ssl-key"]
@@ -111,6 +121,8 @@ module Brightbox
111
121
  lbopts[:certificate_private_key] = File.read(File.expand_path(ssl_key_path))
112
122
  end
113
123
 
124
+ lbopts[:sslv3] = options["sslv3"] unless options["sslv3"].nil?
125
+
114
126
  if remove_ssl
115
127
  lbopts[:certificate_pem] = ""
116
128
  lbopts[:certificate_private_key] = ""
@@ -16,6 +16,7 @@ module Brightbox
16
16
  :ssl_subject => certificate_subject,
17
17
  :ssl_valid_from => certificate_valid_from,
18
18
  :ssl_expires_at => certificate_expires_at,
19
+ :ssl_v3_enabled => certificate_enable_ssl3,
19
20
  :nodes => node_ids,
20
21
  :created_on => created_on,
21
22
  :listeners => listeners,
@@ -43,6 +44,10 @@ module Brightbox
43
44
  end
44
45
  end
45
46
 
47
+ def buffer_size
48
+ attributes[:buffer_size]
49
+ end
50
+
46
51
  def destroy
47
52
  fog_model.destroy
48
53
  rescue Excon::Errors::Conflict
@@ -1,3 +1,3 @@
1
1
  module Brightbox
2
- VERSION = "1.3.0" unless defined?(Brightbox::VERSION)
2
+ VERSION = "1.4.0" unless defined?(Brightbox::VERSION)
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brightbox-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Leach
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-20 00:00:00.000000000 Z
11
+ date: 2014-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-brightbox
@@ -16,14 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.3'
19
+ version: '0.6'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 0.6.1
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
27
  - - "~>"
25
28
  - !ruby/object:Gem::Version
26
- version: '0.3'
29
+ version: '0.6'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 0.6.1
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: gli
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -941,4 +947,3 @@ test_files:
941
947
  - spec/unit/ruby_core_ext_spec.rb
942
948
  - spec/unit/temporary_home_spec.rb
943
949
  - spec/unit/tmp_config_spec.rb
944
- has_rdoc: