kontena-plugin-vagrant 0.2.0.pre2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDQ5ZTgzOTQ3MjhjNDVhZjU1YWQ1NzZkMjYwMDVhMDc5NDQzMjhjNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDlmZWE5MjE4NGJkNzY1MDRjMDkxZDYzMTdkOWMwZTdlYjdkOWU4Ng==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MzIyNzY5ZDM3ZTgwOGM1ZTRlYzFhNWM3ZDBhM2M4MTgzMzI3N2VlZTYwMTgx
|
10
|
+
MDdlYzc3ODRjNjFlN2EzYWU2OTM1MmUzMzU4MTE4ODY1NzBlNmE5Yzg5NzM2
|
11
|
+
MDM1ZWMxYTk1YzQwNzk1YmM2ZTNjYjU2MTI5NjczNzhjYjViYTA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NGViZTMwZTEzZWU3YTJlY2NiZTE0YTkzNGFkM2NjMmUwZDc0YmJlNzVkZGIy
|
14
|
+
NDgxMjlmMGZlYzMxNWM4ZGJhMDRjZmY4ZmNkMThiZDkzZmJlY2IwMjBmMmU0
|
15
|
+
NGQzMGMwNDQ1Y2MxYWE2ZTIwYjBiNzg5YjA1MDhkYTI5MGEyMmQ=
|
@@ -35,7 +35,16 @@ coreos:
|
|
35
35
|
DOMAINS=kontena.local
|
36
36
|
[DHCP]
|
37
37
|
UseDNS=false
|
38
|
-
|
38
|
+
- name: etcd2.service
|
39
|
+
command: start
|
40
|
+
enable: true
|
41
|
+
content: |
|
42
|
+
Description=etcd 2.0
|
43
|
+
After=docker.service
|
44
|
+
[Service]
|
45
|
+
Restart=always
|
46
|
+
RestartSec=5
|
47
|
+
ExecStart=/usr/bin/docker logs --tail=10 -f kontena-etcd
|
39
48
|
- name: 10-weave.network
|
40
49
|
runtime: false
|
41
50
|
content: |
|
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'fileutils'
|
2
2
|
require 'erb'
|
3
3
|
require 'open3'
|
4
|
+
require 'json'
|
4
5
|
|
5
6
|
module Kontena
|
6
7
|
module Machine
|
@@ -64,11 +65,19 @@ module Kontena
|
|
64
65
|
spinner "Waiting for #{name.colorize(:cyan)} to start " do
|
65
66
|
sleep 1 until master_running?
|
66
67
|
end
|
67
|
-
|
68
|
+
|
69
|
+
master_version = nil
|
70
|
+
spinner "Retrieving Kontena Master version" do
|
71
|
+
master_version = JSON.parse(client.get(path: '/'))["version"] rescue nil
|
72
|
+
end
|
73
|
+
|
74
|
+
spinner "Kontena Master #{master_version} is now running at #{API_URL}"
|
68
75
|
|
69
76
|
{
|
70
77
|
name: name.sub('kontena-master-', ''),
|
71
78
|
public_ip: API_URL.split('//').last,
|
79
|
+
provider: 'vagrant',
|
80
|
+
version: master_version,
|
72
81
|
code: opts[:initial_admin_code]
|
73
82
|
}
|
74
83
|
end
|
@@ -51,7 +51,7 @@ module Kontena
|
|
51
51
|
end
|
52
52
|
end
|
53
53
|
end
|
54
|
-
spinner "Waiting for node #{name.colorize(:cyan)} join
|
54
|
+
spinner "Waiting for node #{name.colorize(:cyan)} to join grid #{grid.colorize(:cyan)} " do
|
55
55
|
sleep 1 until node = node_exists_in_grid?(grid, name)
|
56
56
|
end
|
57
57
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kontena-plugin-vagrant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.0
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kontena, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: kontena-cli
|
@@ -109,9 +109,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
109
109
|
version: '0'
|
110
110
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
111
111
|
requirements:
|
112
|
-
- - ! '
|
112
|
+
- - ! '>='
|
113
113
|
- !ruby/object:Gem::Version
|
114
|
-
version:
|
114
|
+
version: '0'
|
115
115
|
requirements: []
|
116
116
|
rubyforge_project:
|
117
117
|
rubygems_version: 2.4.5
|