forj 1.0.6 → 1.0.7

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: 109aaca45df11251c58c7dc0a609e70b8f00464c
4
- data.tar.gz: b1e2012cbc1e679e2aa3d15a009090ddb6082b7e
3
+ metadata.gz: 70f1b264464790bfae435e9dcfb4fda06d646bc7
4
+ data.tar.gz: 1e54b8faf466d33cb3147b38a26473a2fd368319
5
5
  SHA512:
6
- metadata.gz: 184323727e5d66392e42d3f9a350e2dee1aad85949e0261cb6fc8e4f211209193fd61674dafcda7d12573cd93b27de76ef68ad8c0075e7726049c7120033c3ba
7
- data.tar.gz: 75236938deada281404745ca1bda29cd5c19f432f2c20dba20851837864b0d453bee63b968d410fa294685f6143653ad0efa643e23c50d267fb3e9a2bc081ae4
6
+ metadata.gz: b539bf62bd365a93000a0b5abf5883f4328d624fa5577f621add143fbaadfa309bc881b86f2984a91a6062aaef048ef8190d7895dd16f677e3ec391a3d9e1c2e
7
+ data.tar.gz: a42889ff7406624e986c36c59c13b9bb683509e129cfbc8ef8be42407bd6f267f75d3a6475390a38dfa5542bd556b0a5e2083841ae01169c0940be8bdaa32d7e
data/README.md CHANGED
@@ -72,16 +72,17 @@ Quick steps: How to create a forj?
72
72
  - *hpcloud* : Use this provider for http://www.hpcloud.com/, or hphelion.
73
73
  Uses Access key and secret key authentication mechanism.
74
74
 
75
- - [hp public cloud|http://www.hpcloud.com/] from HP. Tested successfully.
75
+ - [hp public cloud](http://www.hpcloud.com/) from HP. Tested successfully.
76
+ - [hphelion](http://www8.hp.com/us/en/cloud/helion-overview.html) from HP. Not tested with access keys.
76
77
 
77
78
  - *openstack*: Use this provider to access any openstack installation (public or private) or Hphelion (public or private)
78
79
  Uses login and password authentication system
79
80
 
80
81
  If you want to test against a new local openstack cloud, you can consider :
81
82
 
82
- - [packstack|https://wiki.openstack.org/wiki/Packstack] from RedHat. Can be used for a notebook local installation. tested successfully.
83
- - [hphelion|http://www8.hp.com/fr/fr/cloud/helion-overview.html] from HP. Tested successfully
84
- - [Ubuntu OpenStack|http://www.ubuntu.com/cloud] from Canonical. Not tested.
83
+ - [packstack](https://wiki.openstack.org/wiki/Packstack) from RedHat. Can be used for a notebook local installation. tested successfully.
84
+ - [hphelion](http://www8.hp.com/us/en/cloud/helion-overview.html) from HP. Tested successfully with user/password.
85
+ - [Ubuntu OpenStack](http://www.ubuntu.com/cloud) from Canonical. Not tested.
85
86
 
86
87
  For any other cloud, you need a provider in lorj library. Contribute to create a new provider!
87
88
  See
data/forj.gemspec CHANGED
@@ -19,8 +19,8 @@ Gem::Specification.new do |s|
19
19
  s.name = 'forj'
20
20
  s.homepage = 'https://www.forj.io'
21
21
 
22
- s.version = '1.0.6'
23
- s.date = '2015-03-18'
22
+ s.version = '1.0.7'
23
+ s.date = '2015-03-23'
24
24
  s.summary = 'forj command line'
25
25
  s.description = 'forj cli - See https://www.forj.io for documentation/information'
26
26
 
@@ -52,7 +52,7 @@ Gem::Specification.new do |s|
52
52
  s.add_runtime_dependency 'json', '1.7.5'
53
53
  s.add_runtime_dependency 'bundler'
54
54
  s.add_runtime_dependency 'nokogiri','1.5.11'
55
- s.add_runtime_dependency 'lorj', '~> 1.0.6'
55
+ s.add_runtime_dependency 'lorj', '~> 1.0.7'
56
56
 
57
57
  s.add_development_dependency "rake", "~> 10.0"
58
58
  s.add_development_dependency "rspec", "~> 3.1.0"
@@ -110,15 +110,17 @@ class ForjCoreProcess
110
110
  keypair_coherent, s_status
111
111
  )
112
112
  if o_server[:attrs][:status] == :active
113
+ image = server_get_image o_server
114
+
113
115
  s_msg = <<-END
114
116
  Your forj Maestro server is up and running and is publically accessible
115
117
  through IP '%s'.
116
118
 
117
119
  You can connect to '%s' with:
118
- ssh ubuntu@%s -o StrictHostKeyChecking=no -i %s
120
+ ssh %s@%s -o StrictHostKeyChecking=no -i %s
119
121
  END
120
122
  s_msg = format(s_msg, o_address[:public_ip], o_server[:name],
121
- o_address[:public_ip], private_key_file
123
+ image[:ssh_user], o_address[:public_ip], private_key_file
122
124
  )
123
125
 
124
126
  unless keypair_coherent
@@ -283,7 +285,7 @@ class ForjCoreProcess
283
285
  end
284
286
  end
285
287
 
286
- image = data_objects[:image, :ObjectData]
288
+ image = data_objects(:image, :ObjectData)
287
289
  s_msg = <<-END
288
290
  Public IP for server '%s' is assigned.
289
291
  Now, as soon as the server respond to the ssh port,
@@ -294,7 +296,7 @@ do
294
296
  sleep 5
295
297
  done
296
298
  END
297
- s_msg = format(s_msg, o_server[:name], image[:user],
299
+ s_msg = format(s_msg, o_server[:name], image[:ssh_user],
298
300
  o_address[:public_ip], boot_options[:keys]
299
301
  )
300
302
  unless boot_options[:coherent]
@@ -494,6 +496,7 @@ class ForjCoreProcess
494
496
 
495
497
  def load_h_meta(hParams, hpcloud_priv)
496
498
  h_meta = {
499
+ 'flavor_name' => hParams[:bp_flavor],
497
500
  'cdksite' => config.get(:server_name),
498
501
  'cdkdomain' => hParams[:domain_name],
499
502
  'eroip' => '127.0.0.1',
@@ -82,6 +82,7 @@ Vagrant.configure(2) do |config|
82
82
  config.proxy.no_proxy = ENV['no_proxy'] if ENV.key?('no_proxy')
83
83
  end
84
84
  priv = { privileged: true }
85
+ config.vm.provision "shell", priv.merge(inline: "apt-get update")
85
86
  config.vm.provision "shell", priv.merge(inline: "apt-get install ruby1.9.1 ruby1.9.1-dev rubygems1.9.1 build-essential libopenssl-ruby1.9.1 libssl-dev zlib1g-dev libxml2-dev libxslt-dev git -y")
86
87
  config.vm.provision "shell", priv.merge(inline: "gem install bundler --no-rdoc --no-ri")
87
88
  config.vm.provision "shell", priv.merge(inline: "gem install rake --no-rdoc --no-ri")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forj
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - forj team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-18 00:00:00.000000000 Z
11
+ date: 2015-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -142,14 +142,14 @@ dependencies:
142
142
  requirements:
143
143
  - - ~>
144
144
  - !ruby/object:Gem::Version
145
- version: 1.0.6
145
+ version: 1.0.7
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - ~>
151
151
  - !ruby/object:Gem::Version
152
- version: 1.0.6
152
+ version: 1.0.7
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: rake
155
155
  requirement: !ruby/object:Gem::Requirement