vagrant-k3s 0.1.4.dev.1 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -3
- data/Gemfile.lock +59 -31
- data/README.md +9 -2
- data/lib/vagrant-k3s/config.rb +6 -0
- data/lib/vagrant-k3s/provisioner.rb +6 -1
- data/lib/vagrant-k3s/version.rb +1 -1
- metadata +9 -8
- data/vagrant-k3s.gemspec +0 -37
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d1e649b8d729b21762a49008b3dfca4446b736c9067e3c8dc28ac759403f4ab
|
4
|
+
data.tar.gz: 39e9abd547653ccf3c00007099ebb1c482e1d57f51c9fb68ebd2c70757defb95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab65ef5bcf8c8f653002cf84c457cecc8478812751b5b4f42efabb7402a6f015208990097f3585613bb7e88da113b645f78e7e089bfdeb4bd8c8ad480aba60d3
|
7
|
+
data.tar.gz: 8f36357d7283a91f1d917475b6ede443aae8067c6dad498debc1316746c1381ed41a8951318c223409e99d56dc218f9d9a1d07b694b0410ca61c0724346403c7
|
data/Gemfile
CHANGED
@@ -3,13 +3,11 @@
|
|
3
3
|
source 'https://rubygems.org'
|
4
4
|
|
5
5
|
group :development do
|
6
|
-
gem 'vagrant', git: 'https://github.com/hashicorp/vagrant.git', tag: "v2.
|
6
|
+
gem 'vagrant', git: 'https://github.com/hashicorp/vagrant.git', tag: "v2.3.4"
|
7
7
|
end
|
8
8
|
|
9
9
|
group :plugins do
|
10
10
|
gemspec
|
11
|
-
# gem "vagrant-libvirt"
|
12
11
|
# gem "vagrant-reload"
|
13
12
|
# gem "vagrant-timezone"
|
14
|
-
# gem "vagrant-vmware-desktop"
|
15
13
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,23 +1,28 @@
|
|
1
1
|
GIT
|
2
2
|
remote: https://github.com/hashicorp/vagrant.git
|
3
|
-
revision:
|
4
|
-
tag: v2.
|
3
|
+
revision: 986a01734f008d62897bb66085381090e4fcabfc
|
4
|
+
tag: v2.3.4
|
5
5
|
specs:
|
6
|
-
vagrant (2.
|
6
|
+
vagrant (2.3.4)
|
7
7
|
bcrypt_pbkdf (~> 1.1)
|
8
8
|
childprocess (~> 4.1.0)
|
9
|
-
ed25519 (~> 1.
|
9
|
+
ed25519 (~> 1.3.0)
|
10
10
|
erubi
|
11
|
+
googleapis-common-protos-types (~> 1.3)
|
12
|
+
grpc
|
11
13
|
hashicorp-checkpoint (~> 0.1.5)
|
12
14
|
i18n (~> 1.8)
|
13
|
-
|
15
|
+
ipaddr (>= 1.2.4)
|
16
|
+
listen (~> 3.6)
|
14
17
|
log4r (~> 1.1.9, < 1.1.11)
|
15
18
|
mime-types (~> 3.3)
|
16
|
-
net-
|
17
|
-
net-
|
18
|
-
net-
|
19
|
+
net-ftp (~> 0.1)
|
20
|
+
net-scp (~> 4.0)
|
21
|
+
net-sftp (~> 4.0)
|
22
|
+
net-ssh (~> 7.0)
|
19
23
|
rb-kqueue (~> 0.2.0)
|
20
24
|
rexml (~> 3.2)
|
25
|
+
rgl (~> 0.5.7)
|
21
26
|
rubyzip (~> 2.0)
|
22
27
|
vagrant_cloud (~> 3.0.5)
|
23
28
|
wdm (~> 0.1.0)
|
@@ -28,7 +33,7 @@ GIT
|
|
28
33
|
PATH
|
29
34
|
remote: .
|
30
35
|
specs:
|
31
|
-
vagrant-k3s (0.1.
|
36
|
+
vagrant-k3s (0.1.6)
|
32
37
|
|
33
38
|
GEM
|
34
39
|
remote: https://rubygems.org/
|
@@ -36,60 +41,83 @@ GEM
|
|
36
41
|
bcrypt_pbkdf (1.1.0)
|
37
42
|
builder (3.2.4)
|
38
43
|
childprocess (4.1.0)
|
39
|
-
concurrent-ruby (1.
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
44
|
+
concurrent-ruby (1.2.2)
|
45
|
+
date (3.3.3)
|
46
|
+
diff-lcs (1.5.0)
|
47
|
+
ed25519 (1.3.0)
|
48
|
+
erubi (1.12.0)
|
49
|
+
excon (0.99.0)
|
50
|
+
ffi (1.15.5)
|
51
|
+
google-protobuf (3.22.2-x86_64-linux)
|
52
|
+
googleapis-common-protos-types (1.5.0)
|
53
|
+
google-protobuf (~> 3.14)
|
54
|
+
grpc (1.52.0-x86_64-linux)
|
55
|
+
google-protobuf (~> 3.21)
|
56
|
+
googleapis-common-protos-types (~> 1.0)
|
45
57
|
gssapi (1.3.1)
|
46
58
|
ffi (>= 1.0.1)
|
47
|
-
gyoku (1.
|
59
|
+
gyoku (1.4.0)
|
48
60
|
builder (>= 2.1.2)
|
61
|
+
rexml (~> 3.0)
|
49
62
|
hashicorp-checkpoint (0.1.5)
|
50
63
|
httpclient (2.8.3)
|
51
|
-
i18n (1.
|
64
|
+
i18n (1.12.0)
|
52
65
|
concurrent-ruby (~> 1.0)
|
53
|
-
|
66
|
+
ipaddr (1.2.5)
|
67
|
+
listen (3.8.0)
|
54
68
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
55
69
|
rb-inotify (~> 0.9, >= 0.9.10)
|
56
70
|
little-plugger (1.1.4)
|
57
71
|
log4r (1.1.10)
|
58
|
-
logging (2.3.
|
72
|
+
logging (2.3.1)
|
59
73
|
little-plugger (~> 1.1)
|
60
74
|
multi_json (~> 1.14)
|
61
75
|
mime-types (3.4.1)
|
62
76
|
mime-types-data (~> 3.2015)
|
63
|
-
mime-types-data (3.
|
77
|
+
mime-types-data (3.2023.0218.1)
|
64
78
|
multi_json (1.15.0)
|
65
|
-
net-
|
66
|
-
net-
|
67
|
-
|
68
|
-
|
69
|
-
|
79
|
+
net-ftp (0.2.0)
|
80
|
+
net-protocol
|
81
|
+
time
|
82
|
+
net-protocol (0.2.1)
|
83
|
+
timeout
|
84
|
+
net-scp (4.0.0)
|
85
|
+
net-ssh (>= 2.6.5, < 8.0.0)
|
86
|
+
net-sftp (4.0.0)
|
87
|
+
net-ssh (>= 5.0.0, < 8.0.0)
|
88
|
+
net-ssh (7.1.0)
|
70
89
|
nori (2.6.0)
|
90
|
+
pairing_heap (3.0.0)
|
71
91
|
rake (13.0.6)
|
72
|
-
rb-fsevent (0.11.
|
92
|
+
rb-fsevent (0.11.2)
|
73
93
|
rb-inotify (0.10.1)
|
74
94
|
ffi (~> 1.0)
|
75
|
-
rb-kqueue (0.2.
|
95
|
+
rb-kqueue (0.2.8)
|
76
96
|
ffi (>= 0.5.0)
|
77
97
|
rexml (3.2.5)
|
98
|
+
rgl (0.5.10)
|
99
|
+
pairing_heap (>= 0.3.0)
|
100
|
+
rexml (~> 3.2, >= 3.2.4)
|
101
|
+
stream (~> 0.5.3)
|
78
102
|
rspec (3.10.0)
|
79
103
|
rspec-core (~> 3.10.0)
|
80
104
|
rspec-expectations (~> 3.10.0)
|
81
105
|
rspec-mocks (~> 3.10.0)
|
82
|
-
rspec-core (3.10.
|
106
|
+
rspec-core (3.10.2)
|
83
107
|
rspec-support (~> 3.10.0)
|
84
|
-
rspec-expectations (3.10.
|
108
|
+
rspec-expectations (3.10.2)
|
85
109
|
diff-lcs (>= 1.2.0, < 2.0)
|
86
110
|
rspec-support (~> 3.10.0)
|
87
|
-
rspec-mocks (3.10.
|
111
|
+
rspec-mocks (3.10.3)
|
88
112
|
diff-lcs (>= 1.2.0, < 2.0)
|
89
113
|
rspec-support (~> 3.10.0)
|
90
114
|
rspec-support (3.10.3)
|
91
115
|
rubyntlm (0.6.3)
|
92
116
|
rubyzip (2.3.2)
|
117
|
+
stream (0.5.5)
|
118
|
+
time (0.2.1)
|
119
|
+
date
|
120
|
+
timeout (0.3.2)
|
93
121
|
vagrant_cloud (3.0.5)
|
94
122
|
excon (~> 0.73)
|
95
123
|
log4r (~> 1.1.10)
|
@@ -124,4 +152,4 @@ DEPENDENCIES
|
|
124
152
|
vagrant-k3s!
|
125
153
|
|
126
154
|
BUNDLED WITH
|
127
|
-
2.
|
155
|
+
2.3.14
|
data/README.md
CHANGED
@@ -69,6 +69,11 @@ Vagrant.configure("2") do |config|
|
|
69
69
|
# k3s.args = '--config=/some/other/config.yaml'
|
70
70
|
# default => `/etc/rancher/k3s/config.yaml`
|
71
71
|
k3s.config_path = '/etc/rancher/k3s/config.yaml'
|
72
|
+
|
73
|
+
# skip_start: install but don't start K3s
|
74
|
+
# type => Boolean
|
75
|
+
# default => false
|
76
|
+
k3s.skip_start = true
|
72
77
|
end
|
73
78
|
end
|
74
79
|
|
@@ -76,11 +81,13 @@ end
|
|
76
81
|
## Development
|
77
82
|
|
78
83
|
See https://www.vagrantup.com/docs/plugins/development-basics
|
84
|
+
- `gem build`
|
85
|
+
- `VAGRANT_CWD=./test/ubuntu bundle exec vagrant up`
|
79
86
|
|
80
87
|
## Contributing
|
81
88
|
|
82
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
89
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/k3s-io/vagrant-k3s.
|
83
90
|
|
84
91
|
## Code of Conduct
|
85
92
|
|
86
|
-
|
93
|
+
This project is intended to be a safe, welcoming space for collaboration. Everyone interacting in the vagrant-k3s projects codebase is expected to adhere to the [code of conduct](CODE_OF_CONDUCT.md).
|
data/lib/vagrant-k3s/config.rb
CHANGED
@@ -53,6 +53,10 @@ module VagrantPlugins
|
|
53
53
|
# @return [String]
|
54
54
|
attr_accessor :installer_url
|
55
55
|
|
56
|
+
# Defaults to false
|
57
|
+
# @return [Boolean]
|
58
|
+
attr_accessor :skip_start
|
59
|
+
|
56
60
|
# # INSTALL_K3S_BIN_DIR
|
57
61
|
# # @return [String]
|
58
62
|
# attr_accessor :install_bin_dir
|
@@ -104,6 +108,7 @@ module VagrantPlugins
|
|
104
108
|
@env_owner = UNSET_VALUE
|
105
109
|
@env_path = UNSET_VALUE
|
106
110
|
@installer_url = UNSET_VALUE
|
111
|
+
@skip_start = UNSET_VALUE
|
107
112
|
end
|
108
113
|
|
109
114
|
def finalize!
|
@@ -117,6 +122,7 @@ module VagrantPlugins
|
|
117
122
|
@env_owner = DEFAULT_ENV_OWNER if @env_owner == UNSET_VALUE
|
118
123
|
@env_path = DEFAULT_ENV_PATH if @env_path == UNSET_VALUE
|
119
124
|
@installer_url = DEFAULT_INSTALLER_URL if @installer_url == UNSET_VALUE
|
125
|
+
@skip_start = false if @skip_start == UNSET_VALUE
|
120
126
|
|
121
127
|
if @args && args_valid?
|
122
128
|
@args = @args.is_a?(Array) ? @args.map { |a| a.to_s } : @args.to_s
|
@@ -51,6 +51,11 @@ module VagrantPlugins
|
|
51
51
|
end
|
52
52
|
file_upload "k3s-install.env", env_file, env_text
|
53
53
|
|
54
|
+
skip_env = ""
|
55
|
+
if config.skip_start
|
56
|
+
skip_env = "INSTALL_K3S_SKIP_ENABLE=true"
|
57
|
+
end
|
58
|
+
|
54
59
|
prv_file = "/vagrant/k3s-provisioner.sh"
|
55
60
|
prv_text = <<~EOF
|
56
61
|
#/usr/bin/env bash
|
@@ -62,7 +67,7 @@ module VagrantPlugins
|
|
62
67
|
set -o allexport
|
63
68
|
source #{config.env_path}
|
64
69
|
set +o allexport
|
65
|
-
curl -fsL '#{config.installer_url}' | sh -s - #{args}
|
70
|
+
curl -fsL '#{config.installer_url}' | #{skip_env} sh -s - #{args}
|
66
71
|
EOF
|
67
72
|
file_upload("k3s-install.sh", prv_file, prv_text)
|
68
73
|
@machine.ui.info "Invoking: #{prv_file}"
|
data/lib/vagrant-k3s/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-k3s
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
+
- Derek Nola
|
7
8
|
- Jacob Blain Christen
|
8
9
|
autorequire:
|
9
10
|
bindir: exe
|
10
11
|
cert_chain: []
|
11
|
-
date:
|
12
|
+
date: 2023-03-13 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: rake
|
@@ -40,6 +41,7 @@ dependencies:
|
|
40
41
|
version: 3.10.0
|
41
42
|
description: Manage k3s installations on Vagrant guests.
|
42
43
|
email:
|
44
|
+
- derek.nola@suse.com
|
43
45
|
- dweomer5@gmail.com
|
44
46
|
executables: []
|
45
47
|
extensions: []
|
@@ -68,13 +70,12 @@ files:
|
|
68
70
|
- lib/vagrant-k3s/plugin.rb
|
69
71
|
- lib/vagrant-k3s/provisioner.rb
|
70
72
|
- lib/vagrant-k3s/version.rb
|
71
|
-
-
|
72
|
-
homepage: https://github.com/dweomer/vagrant-k3s
|
73
|
+
homepage: https://github.com/k3s-io/vagrant-k3s
|
73
74
|
licenses:
|
74
|
-
- Apache
|
75
|
+
- Apache-2.0
|
75
76
|
metadata:
|
76
|
-
homepage_uri: https://github.com/
|
77
|
-
source_code_uri: https://github.com/
|
77
|
+
homepage_uri: https://github.com/k3s-io/vagrant-k3s
|
78
|
+
source_code_uri: https://github.com/k3s-io/vagrant-k3s
|
78
79
|
post_install_message:
|
79
80
|
rdoc_options: []
|
80
81
|
require_paths:
|
@@ -93,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
94
|
- !ruby/object:Gem::Version
|
94
95
|
version: 1.3.6
|
95
96
|
requirements: []
|
96
|
-
rubygems_version: 3.
|
97
|
+
rubygems_version: 3.3.5
|
97
98
|
signing_key:
|
98
99
|
specification_version: 4
|
99
100
|
summary: Manage k3s installations on Vagrant guests.
|
data/vagrant-k3s.gemspec
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
$:.unshift File.expand_path("../lib", __FILE__)
|
3
|
-
require 'vagrant-k3s/version'
|
4
|
-
|
5
|
-
Gem::Specification.new do |spec|
|
6
|
-
spec.name = 'vagrant-k3s'
|
7
|
-
spec.version = VagrantPlugins::K3s::VERSION
|
8
|
-
spec.platform = Gem::Platform::RUBY
|
9
|
-
spec.authors = ['Jacob Blain Christen']
|
10
|
-
spec.email = ['dweomer5@gmail.com']
|
11
|
-
|
12
|
-
spec.license = 'Apache 2.0'
|
13
|
-
|
14
|
-
spec.summary = 'Manage k3s installations on Vagrant guests.'
|
15
|
-
spec.description = spec.summary
|
16
|
-
spec.homepage = 'https://github.com/dweomer/vagrant-k3s'
|
17
|
-
|
18
|
-
spec.metadata['homepage_uri'] = spec.homepage
|
19
|
-
spec.metadata['source_code_uri'] = spec.homepage
|
20
|
-
|
21
|
-
spec.required_ruby_version = ">= 2.5", "< 3.1"
|
22
|
-
spec.required_rubygems_version = ">= 1.3.6"
|
23
|
-
|
24
|
-
spec.add_development_dependency "rake", "~> 13.0"
|
25
|
-
spec.add_development_dependency "rspec", "~> 3.10.0"
|
26
|
-
|
27
|
-
# Specify which files should be added to the gem when it is released.
|
28
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
29
|
-
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
30
|
-
`git ls-files -z`.split("\x0").reject do |f|
|
31
|
-
(f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
|
32
|
-
end
|
33
|
-
end
|
34
|
-
spec.bindir = 'exe'
|
35
|
-
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
36
|
-
spec.require_paths = ['lib']
|
37
|
-
end
|