vagrant-k3s 0.1.3 → 0.1.6

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
  SHA256:
3
- metadata.gz: 48811d5faa2c2744a08194bd9363f10e799e1b54cba87032cfba59dad23cf225
4
- data.tar.gz: be610cfd383841a2ae5835bda38641121113945212846c21d8a2870073bd1016
3
+ metadata.gz: 7d1e649b8d729b21762a49008b3dfca4446b736c9067e3c8dc28ac759403f4ab
4
+ data.tar.gz: 39e9abd547653ccf3c00007099ebb1c482e1d57f51c9fb68ebd2c70757defb95
5
5
  SHA512:
6
- metadata.gz: 6f55e634c9e2f24d4e74f93e7d5fc3432636c7deea33fbe4b0d8c8c331954d877824dc6fce8e718206f2957d6f503c48120e05c434fe558053cf33c58010854d
7
- data.tar.gz: 4cb146976504bc739e6d0d004dd6cb3246b38819667150187d0f67d5c027dc44344a46999fc6bdf84fedb1f46883ae9fc7d92f227f928a561956347d2ffc3c6d
6
+ metadata.gz: ab65ef5bcf8c8f653002cf84c457cecc8478812751b5b4f42efabb7402a6f015208990097f3585613bb7e88da113b645f78e7e089bfdeb4bd8c8ad480aba60d3
7
+ data.tar.gz: 8f36357d7283a91f1d917475b6ede443aae8067c6dad498debc1316746c1381ed41a8951318c223409e99d56dc218f9d9a1d07b694b0410ca61c0724346403c7
data/Gemfile CHANGED
@@ -3,16 +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.2.18"
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-aws"
12
- gem "vagrant-digitalocean"
13
- gem "vagrant-env"
14
- gem "vagrant-libvirt"
15
- gem "vagrant-reload"
16
- gem "vagrant-timezone"
17
- gem "vagrant-vmware-desktop"
11
+ # gem "vagrant-reload"
12
+ # gem "vagrant-timezone"
18
13
  end
data/Gemfile.lock CHANGED
@@ -1,23 +1,28 @@
1
1
  GIT
2
2
  remote: https://github.com/hashicorp/vagrant.git
3
- revision: 52857ccac9d315a6e1897c7885f463983ac67957
4
- tag: v2.2.18
3
+ revision: 986a01734f008d62897bb66085381090e4fcabfc
4
+ tag: v2.3.4
5
5
  specs:
6
- vagrant (2.2.18)
6
+ vagrant (2.3.4)
7
7
  bcrypt_pbkdf (~> 1.1)
8
8
  childprocess (~> 4.1.0)
9
- ed25519 (~> 1.2.4)
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
- listen (~> 3.5)
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-scp (~> 3.0.0)
17
- net-sftp (~> 3.0)
18
- net-ssh (>= 6.1.0, < 6.2)
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.3)
36
+ vagrant-k3s (0.1.6)
32
37
 
33
38
  GEM
34
39
  remote: https://rubygems.org/
@@ -36,131 +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.1.9)
40
- diff-lcs (1.4.4)
41
- dotenv (0.11.1)
42
- dotenv-deployment (~> 0.0.2)
43
- dotenv-deployment (0.0.2)
44
- ed25519 (1.2.4)
45
- erubi (1.10.0)
46
- excon (0.88.0)
47
- faraday (1.8.0)
48
- faraday-em_http (~> 1.0)
49
- faraday-em_synchrony (~> 1.0)
50
- faraday-excon (~> 1.1)
51
- faraday-httpclient (~> 1.0.1)
52
- faraday-net_http (~> 1.0)
53
- faraday-net_http_persistent (~> 1.1)
54
- faraday-patron (~> 1.0)
55
- faraday-rack (~> 1.0)
56
- multipart-post (>= 1.2, < 3)
57
- ruby2_keywords (>= 0.0.4)
58
- faraday-em_http (1.0.0)
59
- faraday-em_synchrony (1.0.0)
60
- faraday-excon (1.1.0)
61
- faraday-httpclient (1.0.1)
62
- faraday-net_http (1.0.1)
63
- faraday-net_http_persistent (1.2.0)
64
- faraday-patron (1.0.0)
65
- faraday-rack (1.0.0)
66
- ffi (1.15.4)
67
- fog-aws (3.12.0)
68
- fog-core (~> 2.1)
69
- fog-json (~> 1.1)
70
- fog-xml (~> 0.1)
71
- ipaddress (~> 0.8)
72
- fog-core (2.2.4)
73
- builder
74
- excon (~> 0.71)
75
- formatador (~> 0.2)
76
- mime-types
77
- fog-json (1.2.0)
78
- fog-core
79
- multi_json (~> 1.10)
80
- fog-libvirt (0.9.0)
81
- fog-core (>= 1.27.4)
82
- fog-json
83
- fog-xml (~> 0.1.1)
84
- json
85
- ruby-libvirt (>= 0.7.0)
86
- fog-xml (0.1.4)
87
- fog-core
88
- nokogiri (>= 1.5.11, < 2.0.0)
89
- formatador (0.3.0)
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)
90
57
  gssapi (1.3.1)
91
58
  ffi (>= 1.0.1)
92
- gyoku (1.3.1)
59
+ gyoku (1.4.0)
93
60
  builder (>= 2.1.2)
61
+ rexml (~> 3.0)
94
62
  hashicorp-checkpoint (0.1.5)
95
63
  httpclient (2.8.3)
96
- i18n (1.8.10)
64
+ i18n (1.12.0)
97
65
  concurrent-ruby (~> 1.0)
98
- iniparse (1.5.0)
99
- ipaddress (0.8.3)
100
- json (2.6.1)
101
- listen (3.7.0)
66
+ ipaddr (1.2.5)
67
+ listen (3.8.0)
102
68
  rb-fsevent (~> 0.10, >= 0.10.3)
103
69
  rb-inotify (~> 0.9, >= 0.9.10)
104
70
  little-plugger (1.1.4)
105
71
  log4r (1.1.10)
106
- logging (2.3.0)
72
+ logging (2.3.1)
107
73
  little-plugger (~> 1.1)
108
74
  multi_json (~> 1.14)
109
- mime-types (3.3.1)
75
+ mime-types (3.4.1)
110
76
  mime-types-data (~> 3.2015)
111
- mime-types-data (3.2021.0901)
77
+ mime-types-data (3.2023.0218.1)
112
78
  multi_json (1.15.0)
113
- multipart-post (2.1.1)
114
- net-scp (3.0.0)
115
- net-ssh (>= 2.6.5, < 7.0.0)
116
- net-sftp (3.0.0)
117
- net-ssh (>= 5.0.0, < 7.0.0)
118
- net-ssh (6.1.0)
119
- nokogiri (1.12.5-x86_64-linux)
120
- racc (~> 1.4)
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)
121
89
  nori (2.6.0)
122
- racc (1.6.0)
90
+ pairing_heap (3.0.0)
123
91
  rake (13.0.6)
124
- rb-fsevent (0.11.0)
92
+ rb-fsevent (0.11.2)
125
93
  rb-inotify (0.10.1)
126
94
  ffi (~> 1.0)
127
- rb-kqueue (0.2.7)
95
+ rb-kqueue (0.2.8)
128
96
  ffi (>= 0.5.0)
129
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)
130
102
  rspec (3.10.0)
131
103
  rspec-core (~> 3.10.0)
132
104
  rspec-expectations (~> 3.10.0)
133
105
  rspec-mocks (~> 3.10.0)
134
- rspec-core (3.10.1)
106
+ rspec-core (3.10.2)
135
107
  rspec-support (~> 3.10.0)
136
- rspec-expectations (3.10.1)
108
+ rspec-expectations (3.10.2)
137
109
  diff-lcs (>= 1.2.0, < 2.0)
138
110
  rspec-support (~> 3.10.0)
139
- rspec-mocks (3.10.2)
111
+ rspec-mocks (3.10.3)
140
112
  diff-lcs (>= 1.2.0, < 2.0)
141
113
  rspec-support (~> 3.10.0)
142
- rspec-support (3.10.2)
143
- ruby-libvirt (0.7.1)
144
- ruby2_keywords (0.0.5)
114
+ rspec-support (3.10.3)
145
115
  rubyntlm (0.6.3)
146
116
  rubyzip (2.3.2)
147
- vagrant-aws (0.7.2)
148
- fog-aws (~> 3.12.0)
149
- iniparse (~> 1.4, >= 1.4.2)
150
- vagrant-digitalocean (0.9.5)
151
- faraday (>= 0.8.6)
152
- json
153
- log4r
154
- vagrant-env (0.0.3)
155
- dotenv (~> 0.9)
156
- vagrant-libvirt (0.6.3)
157
- fog-core (~> 2.1)
158
- fog-libvirt (>= 0.6.0)
159
- nokogiri (~> 1.6)
160
- rexml
161
- vagrant-reload (0.0.1)
162
- vagrant-timezone (1.3.0)
163
- vagrant-vmware-desktop (3.0.1)
117
+ stream (0.5.5)
118
+ time (0.2.1)
119
+ date
120
+ timeout (0.3.2)
164
121
  vagrant_cloud (3.0.5)
165
122
  excon (~> 0.73)
166
123
  log4r (~> 1.1.10)
@@ -192,14 +149,7 @@ DEPENDENCIES
192
149
  rake (~> 13.0)
193
150
  rspec (~> 3.10.0)
194
151
  vagrant!
195
- vagrant-aws
196
- vagrant-digitalocean
197
- vagrant-env
198
152
  vagrant-k3s!
199
- vagrant-libvirt
200
- vagrant-reload
201
- vagrant-timezone
202
- vagrant-vmware-desktop
203
153
 
204
154
  BUNDLED WITH
205
- 2.2.27
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/dweomer/vagrant-k3s. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/dweomer/vagrant-k3s/blob/master/CODE_OF_CONDUCT.md).
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
- Everyone interacting in the Vagrant::K3s project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/dweomer/vagrant-k3s/blob/master/CODE_OF_CONDUCT.md).
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).
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module VagrantPlugins
4
+ module K3s
5
+ module Cap
6
+ module Linux
7
+ module K3sKubectl
8
+ def self.k3s_kubectl(machine,*args)
9
+ cmd = "k3s kubectl #{args.join(' ')}"
10
+ machine.ui.info cmd
11
+ begin
12
+ machine.communicate.execute(cmd) do |type, data|
13
+ machine.ui.detail data.chomp, :color => type == :stderr ? :red : :green
14
+ end
15
+ rescue Vagrant::Errors::VagrantError
16
+ return 0
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -3,16 +3,18 @@
3
3
  module VagrantPlugins
4
4
  module K3s
5
5
  class Config < Vagrant.plugin(2, :config)
6
- DEFAULT_CONFIG_MODE = "0600".freeze
7
- DEFAULT_CONFIG_OWNER = "root:root".freeze
8
- DEFAULT_CONFIG_PATH = "/etc/rancher/k3s/config.yaml".freeze
9
- DEFAULT_ENV_MODE = "0600".freeze
10
- DEFAULT_ENV_OWNER = "root:root".freeze
11
- DEFAULT_ENV_PATH = "/etc/rancher/k3s/install.env".freeze
12
- DEFAULT_INSTALLER_URL = "https://get.k3s.io".freeze
6
+ DEFAULT_FILE_MODE = '0600'
7
+ DEFAULT_FILE_OWNER = 'root:root'
8
+ DEFAULT_CONFIG_MODE = DEFAULT_FILE_MODE
9
+ DEFAULT_CONFIG_OWNER = DEFAULT_FILE_OWNER
10
+ DEFAULT_CONFIG_PATH = '/etc/rancher/k3s/config.yaml'
11
+ DEFAULT_ENV_MODE = DEFAULT_FILE_MODE
12
+ DEFAULT_ENV_OWNER = DEFAULT_FILE_OWNER
13
+ DEFAULT_ENV_PATH = '/etc/rancher/k3s/install.env'
14
+ DEFAULT_INSTALLER_URL = 'https://get.k3s.io'
13
15
 
14
16
  # string or array
15
- # @return [Array<String]
17
+ # @return [Array<String>]
16
18
  attr_accessor :args
17
19
 
18
20
  # string (.yaml) or hash
@@ -51,6 +53,10 @@ module VagrantPlugins
51
53
  # @return [String]
52
54
  attr_accessor :installer_url
53
55
 
56
+ # Defaults to false
57
+ # @return [Boolean]
58
+ attr_accessor :skip_start
59
+
54
60
  # # INSTALL_K3S_BIN_DIR
55
61
  # # @return [String]
56
62
  # attr_accessor :install_bin_dir
@@ -102,6 +108,7 @@ module VagrantPlugins
102
108
  @env_owner = UNSET_VALUE
103
109
  @env_path = UNSET_VALUE
104
110
  @installer_url = UNSET_VALUE
111
+ @skip_start = UNSET_VALUE
105
112
  end
106
113
 
107
114
  def finalize!
@@ -115,6 +122,7 @@ module VagrantPlugins
115
122
  @env_owner = DEFAULT_ENV_OWNER if @env_owner == UNSET_VALUE
116
123
  @env_path = DEFAULT_ENV_PATH if @env_path == UNSET_VALUE
117
124
  @installer_url = DEFAULT_INSTALLER_URL if @installer_url == UNSET_VALUE
125
+ @skip_start = false if @skip_start == UNSET_VALUE
118
126
 
119
127
  if @args && args_valid?
120
128
  @args = @args.is_a?(Array) ? @args.map { |a| a.to_s } : @args.to_s
@@ -28,6 +28,11 @@ module VagrantPlugins
28
28
  Cap::Linux::K3sInstalled
29
29
  end
30
30
 
31
+ guest_capability(:linux, :k3s_kubectl) do
32
+ require_relative "cap/linux/k3s_kubectl"
33
+ Cap::Linux::K3sKubectl
34
+ end
35
+
31
36
  guest_capability(:linux, :curl_installed) do
32
37
  require_relative "cap/linux/curl_installed"
33
38
  Cap::Linux::CurlInstalled
@@ -14,12 +14,11 @@ module VagrantPlugins
14
14
  @logger = Log4r::Logger.new("vagrant::provisioners::k3s")
15
15
  end
16
16
 
17
- def configure(root_config)
18
- @logger.debug root_config.inspect
19
- end
17
+ # def configure(root)
18
+ # end
20
19
 
21
- def cleanup
22
- end
20
+ # def cleanup
21
+ # end
23
22
 
24
23
  def provision
25
24
  args = ""
@@ -30,34 +29,37 @@ module VagrantPlugins
30
29
  args = " #{args.join(" ")}"
31
30
  end
32
31
 
33
- @machine.ui.info 'Installing K3s ...'
34
-
35
32
  unless @machine.guest.capability(:curl_installed)
33
+ @machine.ui.info 'Installing Curl ...'
36
34
  @machine.guest.capability(:curl_install)
37
35
  end
38
36
 
39
- config_file = config.config_path.to_s
40
- config_yaml = config.config.is_a?(String) ? config.config : stringify_keys(config.config).to_yaml
41
- with_file_upload "k3s-config.yaml".freeze, config_file, config_yaml
37
+ cfg_file = config.config_path.to_s
38
+ cfg_yaml = config.config.is_a?(String) ? config.config : stringify_keys(config.config).to_yaml
39
+ file_upload "k3s-config.yaml", cfg_file, cfg_yaml
42
40
 
43
- install_env_file = config.env_path.to_s
44
- install_env_text = ""
41
+ env_file = config.env_path.to_s
42
+ env_text = ""
45
43
  if config.env.is_a?(String)
46
- install_env_text = config.env.to_s
44
+ env_text = config.env.to_s
47
45
  end
48
46
  if config.env.is_a?(Array)
49
- config.env.each {|line| install_env_text << "#{line.to_s}\n"}
47
+ config.env.each {|line| env_text << "#{line.to_s}\n"}
50
48
  end
51
49
  if config.env.is_a?(Hash)
52
- config.env.each {|key,value| install_env_text << "#{key.to_s}=#{quote_and_escape(value.to_s)}\n"}
50
+ config.env.each {|key,value| env_text << "#{key.to_s}=#{quote_and_escape(value.to_s)}\n"}
53
51
  end
54
- with_file_upload "k3s-install.env".freeze, install_env_file, install_env_text
52
+ file_upload "k3s-install.env", env_file, env_text
55
53
 
56
- install_sh = "/tmp/vagrant-k3s-provisioner-install.sh".freeze
57
- with_file_upload "k3s-install.sh", install_sh, <<~EOF
54
+ skip_env = ""
55
+ if config.skip_start
56
+ skip_env = "INSTALL_K3S_SKIP_ENABLE=true"
57
+ end
58
+
59
+ prv_file = "/vagrant/k3s-provisioner.sh"
60
+ prv_text = <<~EOF
58
61
  #/usr/bin/env bash
59
62
  set -eu -o pipefail
60
- mkdir -m 0755 -p $(dirname #{config.config_path}) $(dirname #{config.env_path})
61
63
  chown #{config.config_owner} #{config.config_path}
62
64
  chmod #{config.config_mode} #{config.config_path}
63
65
  chown #{config.env_owner} #{config.env_path}
@@ -65,11 +67,14 @@ module VagrantPlugins
65
67
  set -o allexport
66
68
  source #{config.env_path}
67
69
  set +o allexport
68
- curl -fsL #{config.installer_url} | sh -s - #{args}
70
+ curl -fsL '#{config.installer_url}' | #{skip_env} sh -s - #{args}
69
71
  EOF
72
+ file_upload("k3s-install.sh", prv_file, prv_text)
73
+ @machine.ui.info "Invoking: #{prv_file}"
74
+
70
75
  outputs, handler = build_outputs
71
76
  begin
72
- @machine.communicate.sudo("chmod +x #{install_sh} && #{install_sh}", error_key: :ssh_bad_exit_status_muted, &handler)
77
+ @machine.communicate.sudo("chmod +x #{prv_file} && #{prv_file}", error_key: :ssh_bad_exit_status_muted, &handler)
73
78
  ensure
74
79
  outputs.values.map(&:close)
75
80
  end
@@ -85,7 +90,7 @@ module VagrantPlugins
85
90
  else
86
91
  outputs, handler = build_outputs
87
92
  begin
88
- @machine.communicate.execute("#{exe} --version", :error_key => :ssh_bad_exit_status_muted, &handler)
93
+ @machine.communicate.sudo("#{exe} --version", :error_key => :ssh_bad_exit_status_muted, &handler)
89
94
  ensure
90
95
  outputs.values.map(&:close)
91
96
  end
@@ -114,7 +119,7 @@ module VagrantPlugins
114
119
  end
115
120
  end
116
121
 
117
- def with_file(name='vagrant-k3s-provisioner', content)
122
+ def with_file(name, content)
118
123
  file = Tempfile.new([name])
119
124
  file.binmode
120
125
  begin
@@ -128,14 +133,17 @@ module VagrantPlugins
128
133
  end
129
134
  end
130
135
 
131
- def with_file_upload(name='vagrant-k3s-provisioner', to, content)
132
- with_file(name, content) do |from|
133
- tmpdir = @machine.guest.capability :create_tmp_path, {:type => :directory}
134
- tmpfile = [tmpdir, File.basename(to)].join('/')
135
- @machine.communicate.upload(from, tmpfile)
136
- @machine.communicate.sudo("mkdir -m 0755 -p #{File.dirname(to)} && mv -f #{tmpfile} #{to}")
136
+ def file_upload(local_file, remote_path, content)
137
+ with_file(local_file, content) do |local_path|
138
+ remote_tmp_dir = @machine.guest.capability :create_tmp_path, {:type => :directory}
139
+ remote_tmp_path = [remote_tmp_dir, File.basename(remote_path)].join('/')
140
+ @machine.communicate.upload(local_path, remote_tmp_path)
141
+ @machine.communicate.sudo("install -v -DTZ #{remote_tmp_path} #{remote_path}") do |type, line|
142
+ @machine.ui.info line.chomp, :color => {:stderr => :red, :stdout => :default}[type]
143
+ end
137
144
  end
138
- to
145
+ @machine.ui.detail content.chomp, :color => :yellow
146
+ remote_path
139
147
  end
140
148
 
141
149
  def quote_and_escape(text, quote = '"')
@@ -2,6 +2,6 @@
2
2
 
3
3
  module VagrantPlugins
4
4
  module K3s
5
- VERSION = '0.1.3'
5
+ VERSION = '0.1.6'
6
6
  end
7
7
  end
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.3
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: 2021-10-28 00:00:00.000000000 Z
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: []
@@ -59,6 +61,7 @@ files:
59
61
  - lib/vagrant-k3s/cap/debian/curl_install.rb
60
62
  - lib/vagrant-k3s/cap/linux/curl_installed.rb
61
63
  - lib/vagrant-k3s/cap/linux/k3s_installed.rb
64
+ - lib/vagrant-k3s/cap/linux/k3s_kubectl.rb
62
65
  - lib/vagrant-k3s/cap/redhat/curl_install.rb
63
66
  - lib/vagrant-k3s/cap/suse/curl_install.rb
64
67
  - lib/vagrant-k3s/command.rb
@@ -67,13 +70,12 @@ files:
67
70
  - lib/vagrant-k3s/plugin.rb
68
71
  - lib/vagrant-k3s/provisioner.rb
69
72
  - lib/vagrant-k3s/version.rb
70
- - vagrant-k3s.gemspec
71
- homepage: https://github.com/dweomer/vagrant-k3s
73
+ homepage: https://github.com/k3s-io/vagrant-k3s
72
74
  licenses:
73
- - Apache 2.0
75
+ - Apache-2.0
74
76
  metadata:
75
- homepage_uri: https://github.com/dweomer/vagrant-k3s
76
- source_code_uri: https://github.com/dweomer/vagrant-k3s
77
+ homepage_uri: https://github.com/k3s-io/vagrant-k3s
78
+ source_code_uri: https://github.com/k3s-io/vagrant-k3s
77
79
  post_install_message:
78
80
  rdoc_options: []
79
81
  require_paths:
@@ -92,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
94
  - !ruby/object:Gem::Version
93
95
  version: 1.3.6
94
96
  requirements: []
95
- rubygems_version: 3.1.6
97
+ rubygems_version: 3.3.5
96
98
  signing_key:
97
99
  specification_version: 4
98
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