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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/vagrant-rke2/config.rb +7 -0
- data/lib/vagrant-rke2/provisioner.rb +8 -4
- data/lib/vagrant-rke2/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78c886a21fe07d3859076242fcb5a32e15c9c36ab63ea49fa253d9edabe7d33f
|
4
|
+
data.tar.gz: ea435d06bc44c4f1417abce3fa741ed271ee8d808ae1e7e80e477615fb215abe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48ffee57addebb1a35058aa067b90536713bbf78ecdaefe0c2a025902af7a0c104525d71e626c4e9fc00d1e13f837b255ff8d1d19b9cbb4da69e34925c32b22f
|
7
|
+
data.tar.gz: 2cb388f448d50b54551cd09f00a2ab93690bd75170fbf8f8aeb62315372f524275ae6787e06c23eaa34551a992619eb5b5efe23182ab9bbfdb7982487f24b2ef
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# Vagrant::RKE2
|
2
|
-
This plugin
|
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
|
|
data/lib/vagrant-rke2/config.rb
CHANGED
@@ -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
|
-
|
92
|
-
@machine.
|
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
|
-
|
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
|
-
|
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
|
|
data/lib/vagrant-rke2/version.rb
CHANGED
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.
|
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-
|
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.
|
61
|
+
rubygems_version: 3.2.5
|
62
62
|
signing_key:
|
63
63
|
specification_version: 4
|
64
64
|
summary: Manage RKE2 installations on Vagrant guests
|