vagrant-rke2 0.1.8 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +2 -2
- data/lib/vagrant-rke2/provisioner.rb +2 -4
- data/lib/vagrant-rke2/version.rb +1 -1
- data/vagrant-rke2.gemspec +1 -1
- metadata +4 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d2ea76607ed5649be2b58df23281032786ae7d87029e04c589737e46b6a641a
|
4
|
+
data.tar.gz: 011d08ba95bfbdd61eaf9c5a57df09e14514d0ad1d0a853cc2c0cae6255da5fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5f7a4eb8f175ea88437d98fd6830bd0f778afe89a9882dc7c2659dfe2f619a1caae613f33913a73edfbda9b33fcaa34620b128ccb19ea2a240f9eecf677ac95
|
7
|
+
data.tar.gz: 7b8cd4e0fba52f971e738367909d12371ce36305972d8f7369955277e430a5779d6446c9498cf28f48b46289fc3f37de7cd1934928febb10a22fc858dcdde0d6
|
data/Gemfile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
source "https://rubygems.org"
|
2
2
|
|
3
3
|
group :development do
|
4
|
-
gem 'vagrant', git: 'https://github.com/hashicorp/vagrant.git', tag: "v2.
|
4
|
+
gem 'vagrant', git: 'https://github.com/hashicorp/vagrant.git', tag: "v2.4.1"
|
5
5
|
end
|
6
6
|
|
7
7
|
# Specify your gem's dependencies in vagrant-rke2.gemspec
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@ This plugin is the companion to the [vagrant-k3s](https://github.com/k3s-io/vagr
|
|
3
3
|
|
4
4
|
## Installation
|
5
5
|
|
6
|
-
Vagrant must be >= v2.
|
6
|
+
Vagrant must be >= v2.4.1
|
7
7
|
|
8
8
|
```shell
|
9
9
|
vagrant plugin install vagrant-rke2
|
@@ -16,7 +16,7 @@ See the [Vagrantfile](./test/Vagrantfile) for a working example.
|
|
16
16
|
|
17
17
|
### Linux VMs
|
18
18
|
```ruby
|
19
|
-
Vagrant.require_version ">= 2.
|
19
|
+
Vagrant.require_version ">= 2.4.1"
|
20
20
|
Vagrant.configure("2") do |config|
|
21
21
|
config.vm.box = 'generic/ubuntu2004'
|
22
22
|
|
@@ -1,6 +1,5 @@
|
|
1
1
|
# frozen_string_literal: false
|
2
2
|
|
3
|
-
require 'multi_json/convertible_hash_keys'
|
4
3
|
require "vagrant/util/line_buffer"
|
5
4
|
require 'vagrant/errors'
|
6
5
|
require 'yaml'
|
@@ -8,7 +7,6 @@ require 'yaml'
|
|
8
7
|
module VagrantPlugins
|
9
8
|
module Rke2
|
10
9
|
class Provisioner < Vagrant.plugin('2', :provisioner)
|
11
|
-
include MultiJson::ConvertibleHashKeys
|
12
10
|
def initialize(machine,config)
|
13
11
|
super(machine,config)
|
14
12
|
@logger = Log4r::Logger.new("vagrant::provisioners::rke2")
|
@@ -31,7 +29,7 @@ module VagrantPlugins
|
|
31
29
|
end
|
32
30
|
|
33
31
|
cfg_file = config.config_path.to_s
|
34
|
-
cfg_yaml = config.config.is_a?(String) ? config.config :
|
32
|
+
cfg_yaml = config.config.is_a?(String) ? config.config : config.config.transform_keys(&:to_s).to_yaml
|
35
33
|
file_upload "rke2-config.yaml", cfg_file, cfg_yaml
|
36
34
|
|
37
35
|
env_file = config.env_path.to_s
|
@@ -49,7 +47,7 @@ module VagrantPlugins
|
|
49
47
|
|
50
48
|
prv_file = "/vagrant/rke2-provisioner.sh"
|
51
49
|
prv_text = <<~EOF
|
52
|
-
|
50
|
+
#! /usr/bin/env bash
|
53
51
|
set -eu -o pipefail
|
54
52
|
chown #{config.config_owner} #{config.config_path}
|
55
53
|
chmod #{config.config_mode} #{config.config_path}
|
data/lib/vagrant-rke2/version.rb
CHANGED
data/vagrant-rke2.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.summary = "Manage RKE2 installations on Vagrant guests"
|
12
12
|
spec.description = spec.summary
|
13
13
|
spec.homepage = "https://github.com/dereknola/vagrant-rke2"
|
14
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.
|
14
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
|
15
15
|
|
16
16
|
|
17
17
|
spec.metadata["homepage_uri"] = spec.homepage
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-rke2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Derek Nola
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-06-20 00:00:00.000000000 Z
|
12
11
|
dependencies: []
|
13
12
|
description: Manage RKE2 installations on Vagrant guests
|
14
13
|
email:
|
@@ -44,7 +43,6 @@ licenses:
|
|
44
43
|
metadata:
|
45
44
|
homepage_uri: https://github.com/dereknola/vagrant-rke2
|
46
45
|
source_code_uri: https://github.com/dereknola/vagrant-rke2
|
47
|
-
post_install_message:
|
48
46
|
rdoc_options: []
|
49
47
|
require_paths:
|
50
48
|
- lib
|
@@ -52,15 +50,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
52
50
|
requirements:
|
53
51
|
- - ">="
|
54
52
|
- !ruby/object:Gem::Version
|
55
|
-
version: 2.
|
53
|
+
version: 2.7.0
|
56
54
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
57
55
|
requirements:
|
58
56
|
- - ">="
|
59
57
|
- !ruby/object:Gem::Version
|
60
58
|
version: '0'
|
61
59
|
requirements: []
|
62
|
-
rubygems_version: 3.3
|
63
|
-
signing_key:
|
60
|
+
rubygems_version: 3.6.3
|
64
61
|
specification_version: 4
|
65
62
|
summary: Manage RKE2 installations on Vagrant guests
|
66
63
|
test_files: []
|