vagrant-rke2 0.1.2 → 0.1.3

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: cd355a21d5666ca9a6a8183e7b810aacb99bd465447adf542d5cb322366fd2e0
4
- data.tar.gz: caf3c0730b34d67be647971f5930a8c4a7db91c606f51fedf0a9394ab04a3f1f
3
+ metadata.gz: 78c886a21fe07d3859076242fcb5a32e15c9c36ab63ea49fa253d9edabe7d33f
4
+ data.tar.gz: ea435d06bc44c4f1417abce3fa741ed271ee8d808ae1e7e80e477615fb215abe
5
5
  SHA512:
6
- metadata.gz: 6488eb32110071d61fe2dd5930b33de81bc2babf89781864b7a06f0902df1e3723182260e0189ac63a748d1b3ac6b1d36318b753067f10dab1fc8250b80ed0f2
7
- data.tar.gz: b42ae93ef0676d55b9ea9a4ee4ce00da471de6f5af0e5f9201016634dfa88921c880e04c011e71ce2c5be4193fdea4ef6fab94d30cc93ef3b796dd8090ee067d
6
+ metadata.gz: 48ffee57addebb1a35058aa067b90536713bbf78ecdaefe0c2a025902af7a0c104525d71e626c4e9fc00d1e13f837b255ff8d1d19b9cbb4da69e34925c32b22f
7
+ data.tar.gz: 2cb388f448d50b54551cd09f00a2ab93690bd75170fbf8f8aeb62315372f524275ae6787e06c23eaa34551a992619eb5b5efe23182ab9bbfdb7982487f24b2ef
data/Gemfile.lock CHANGED
@@ -28,7 +28,7 @@ GIT
28
28
  PATH
29
29
  remote: .
30
30
  specs:
31
- vagrant-rke2 (0.1.1)
31
+ vagrant-rke2 (0.1.2)
32
32
 
33
33
  GEM
34
34
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Vagrant::RKE2
2
- This plugin was heavily inspired by the [vagrant-k3s](https://github.com/dweomer/vagrant-k3s) plugin. Check that out and give dweomer some stars.
2
+ This plugin is the companion to the [vagrant-k3s](https://github.com/k3s-io/vagrant-k3s) plugin. It makes deploying RKE2 on vagrant boxes much easier.
3
3
 
4
4
  ## Installation
5
5
 
@@ -57,6 +57,11 @@ module VagrantPlugins
57
57
  # @return [Boolean]
58
58
  attr_accessor :install_path
59
59
 
60
+ # Defaults to false
61
+ # @return [Boolean]
62
+ attr_accessor :skip_start
63
+
64
+
60
65
  def initialize
61
66
  @config = UNSET_VALUE
62
67
  @config_mode = UNSET_VALUE
@@ -68,6 +73,7 @@ module VagrantPlugins
68
73
  @env_path = UNSET_VALUE
69
74
  @installer_url = UNSET_VALUE
70
75
  @install_path = UNSET_VALUE
76
+ @skip_start = UNSET_VALUE
71
77
  end
72
78
 
73
79
  def finalize!
@@ -81,6 +87,7 @@ module VagrantPlugins
81
87
  @env_path = DEFAULT_ENV_PATH if @env_path == UNSET_VALUE
82
88
  @installer_url = DEFAULT_INSTALLER_URL_LINUX if @installer_url == UNSET_VALUE
83
89
  @install_path = true if @install_path == UNSET_VALUE
90
+ @skip_start = false if @skip_start == UNSET_VALUE
84
91
  end
85
92
 
86
93
  def validate(machine)
@@ -88,10 +88,12 @@ module VagrantPlugins
88
88
  end
89
89
  else
90
90
  @machine.communicate.sudo("systemctl enable rke2-server.service")
91
- @machine.communicate.sudo("systemctl start rke2-server.service") do |type, line|
92
- @machine.ui.detail line, :color => :yellow
91
+ if !config.skip_start
92
+ @machine.communicate.sudo("systemctl start rke2-server.service") do |type, line|
93
+ @machine.ui.detail line, :color => :yellow
94
+ end
93
95
  end
94
- end
96
+ end
95
97
 
96
98
  if config.install_path
97
99
  @machine.ui.info "Adding RKE2 to PATH and KUBECONFIG"
@@ -154,7 +156,9 @@ module VagrantPlugins
154
156
 
155
157
  @machine.ui.info "Starting RKE2 agent:"
156
158
  @machine.communicate.execute("rke2.exe agent service --add", {shell: :powershell, elevated: true} )
157
- @machine.communicate.execute("Start-Service -Name 'rke2'", {shell: :powershell, elevated: true} )
159
+ if !config.skip_start
160
+ @machine.communicate.execute("Start-Service -Name 'rke2'", {shell: :powershell, elevated: true} )
161
+ end
158
162
 
159
163
  end
160
164
 
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Rke2
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-rke2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derek Nola
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-07 00:00:00.000000000 Z
11
+ date: 2022-03-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Manage RKE2 installations on Vagrant guests
14
14
  email:
@@ -58,7 +58,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
58
58
  - !ruby/object:Gem::Version
59
59
  version: '0'
60
60
  requirements: []
61
- rubygems_version: 3.1.2
61
+ rubygems_version: 3.2.5
62
62
  signing_key:
63
63
  specification_version: 4
64
64
  summary: Manage RKE2 installations on Vagrant guests