cloudstrap 0.30.11.pre → 0.30.12.pre
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.
- checksums.yaml +4 -4
- data/README.org +2 -2
- data/bin/cloudstrap +3 -3
- data/lib/cloudstrap/amazon/ec2.rb +1 -1
- data/lib/cloudstrap/amazon/iam.rb +1 -1
- data/lib/cloudstrap/amazon/service.rb +1 -1
- data/lib/cloudstrap/amazon/support/rate_limit_handler.rb +1 -1
- data/lib/cloudstrap/bootstrap_agent.rb +1 -1
- data/lib/cloudstrap/config.rb +1 -1
- data/lib/cloudstrap/hdp/bootstrap_properties.rb +5 -5
- data/lib/cloudstrap/seed_properties.rb +2 -2
- data/lib/cloudstrap/ssh/client.rb +3 -3
- data/lib/cloudstrap/ssh/key.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abbe10d27d4f4e5bd183ba7556953ec02e5c3216
|
4
|
+
data.tar.gz: f9a76d71308b176b42115c3c4a06ac307ecad09a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e35b8063403b05ce0e667b4cd740bad6e842910c9965c0d4fa08d231230ad39f4f7c7649a67b9389264cb97325fe39391a3d24662c14872d066d55afd646b0a
|
7
|
+
data.tar.gz: 7f7f2ba508fad6b7a43996fd92c104e703bb2dba7767d3ae8f71c3f80b3c2114e6c64c3b001396f7c919f94aa17b820ad5c176318eb56178d47398e6d208205d
|
data/README.org
CHANGED
@@ -85,13 +85,13 @@ The output describes the results, and all settings used in the process.
|
|
85
85
|
INFO Uploading /Users/colstrom/bootstrap.properties 100.0%
|
86
86
|
INFO [e091db46] Running /usr/bin/env apt install --assume-yes genisoimage aria2 as ubuntu@54.89.237.123
|
87
87
|
INFO [e091db46] Finished in 8.157 seconds with exit status 0 (successful).
|
88
|
-
INFO [1fa8cae1] Running /usr/bin/env aria2c --continue=true --dir=/opt --out=bootstrap.deb
|
88
|
+
INFO [1fa8cae1] Running /usr/bin/env aria2c --continue=true --dir=/opt --out=bootstrap.deb as ubuntu@52.89.237.123
|
89
89
|
INFO [1fa8cae1] Finished in 3.395 seconds with exit status 0 (successful).
|
90
90
|
INFO [577d4fdc] Running /usr/bin/env dpkg --install /opt/bootstrap.deb as ubuntu@52.89.237.123
|
91
91
|
INFO [577d4fdc] Finished in 3.055 seconds with exit status 0 (successful).
|
92
92
|
|
93
93
|
Contratulations! Your Jumpbox is ready. This instance has been configured with
|
94
|
-
everything you need to deploy your very own
|
94
|
+
everything you need to deploy your very own cluster. The SSH key used by this
|
95
95
|
process has been uploaded to your Jumpbox, along with a bootstrap.properties
|
96
96
|
file that has been configured to match the settings used here.
|
97
97
|
|
data/bin/cloudstrap
CHANGED
@@ -13,8 +13,8 @@ gem = Gem::Specification
|
|
13
13
|
.sort_by { |spec| spec.version }
|
14
14
|
.last
|
15
15
|
|
16
|
-
config =
|
17
|
-
agent =
|
16
|
+
config = Cloudstrap::Config.new
|
17
|
+
agent = Cloudstrap::BootstrapAgent.new
|
18
18
|
|
19
19
|
puts <<-EOS
|
20
20
|
# #{gem.name} v#{gem.version}
|
@@ -82,7 +82,7 @@ if agent.jumpbox_running?
|
|
82
82
|
STDERR.puts Pastel.new.green <<-EOS
|
83
83
|
|
84
84
|
Congratulations! Your Jumpbox is ready. This instance has been configured with
|
85
|
-
everything you need to deploy your very own
|
85
|
+
everything you need to deploy your very own cluster. The SSH key used by this
|
86
86
|
process has been uploaded to your Jumpbox, along with a bootstrap.properties
|
87
87
|
file that has been configured to match the settings used here.
|
88
88
|
EOS
|
data/lib/cloudstrap/config.rb
CHANGED
@@ -4,7 +4,7 @@ require 'java-properties'
|
|
4
4
|
require_relative '../config'
|
5
5
|
require_relative '../seed_properties'
|
6
6
|
|
7
|
-
module
|
7
|
+
module Cloudstrap
|
8
8
|
module HDP
|
9
9
|
class BootstrapProperties
|
10
10
|
include ::Contracts::Core
|
@@ -43,9 +43,9 @@ module StackatoLKG
|
|
43
43
|
|
44
44
|
private
|
45
45
|
|
46
|
-
Contract None =>
|
46
|
+
Contract None => SeedProperties
|
47
47
|
def seed
|
48
|
-
@seed ||=
|
48
|
+
@seed ||= SeedProperties.new
|
49
49
|
end
|
50
50
|
|
51
51
|
Contract None => Bool
|
@@ -67,9 +67,9 @@ module StackatoLKG
|
|
67
67
|
@properties = load
|
68
68
|
end
|
69
69
|
|
70
|
-
Contract None =>
|
70
|
+
Contract None => Config
|
71
71
|
def config
|
72
|
-
@config ||=
|
72
|
+
@config ||= Config.new
|
73
73
|
end
|
74
74
|
end
|
75
75
|
end
|
@@ -22,9 +22,9 @@ module Cloudstrap
|
|
22
22
|
@contents ||= connection.body if connection.success?
|
23
23
|
end
|
24
24
|
|
25
|
-
Contract None =>
|
25
|
+
Contract None => Config
|
26
26
|
def config
|
27
|
-
@config ||=
|
27
|
+
@config ||= Config.new
|
28
28
|
end
|
29
29
|
end
|
30
30
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'contracts'
|
2
2
|
require 'sshkit'
|
3
3
|
|
4
|
-
module
|
4
|
+
module Cloudstrap
|
5
5
|
module SSH
|
6
6
|
class Client
|
7
7
|
include ::Contracts::Core
|
@@ -28,9 +28,9 @@ module StackatoLKG
|
|
28
28
|
|
29
29
|
private
|
30
30
|
|
31
|
-
Contract None =>
|
31
|
+
Contract None => Config
|
32
32
|
def config
|
33
|
-
@config ||=
|
33
|
+
@config ||= Config.new
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|
data/lib/cloudstrap/ssh/key.rb
CHANGED
@@ -2,7 +2,7 @@ require 'contracts'
|
|
2
2
|
require 'sshkey'
|
3
3
|
require_relative '../config'
|
4
4
|
|
5
|
-
module
|
5
|
+
module Cloudstrap
|
6
6
|
module SSH
|
7
7
|
class Key
|
8
8
|
include ::Contracts::Core
|
@@ -73,7 +73,7 @@ module StackatoLKG
|
|
73
73
|
Contract None => String
|
74
74
|
def dir
|
75
75
|
@dir ||= [
|
76
|
-
|
76
|
+
Config.new.ssh_dir,
|
77
77
|
File.dirname(@name)
|
78
78
|
].join('/')
|
79
79
|
end
|