vagrant-guests-clearlinux 1.0.13 → 1.0.14
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 +1 -1
- data/lib/vagrant-guests-clearlinux/cap/configure_networks.rb +1 -1
- data/lib/vagrant-guests-clearlinux/cap/nfs_client.rb +20 -0
- data/lib/vagrant-guests-clearlinux/plugin.rb +10 -0
- data/lib/vagrant-guests-clearlinux/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7da2e19f3a6d02f4e42e5d90221000c9ba6bddac07ad0bc35304f6de205a48ba
|
|
4
|
+
data.tar.gz: 82274e24f25ac380531a9b42898c5a97092190acebc0ec47f0e6927e62c456dd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 376fb9fdbf38a3e8df7fdc49a9e02fa2bc9fcb7160a7626e8c24cf7f3a53152522c1c113b1eb752540fca5de6e2dc0b9292b068ff744fdf7dd641b640857bca2
|
|
7
|
+
data.tar.gz: 844f5ff7ac26cd7e9a585c9e08642bb150f2b9afff9c538e72c96c3e062697d857bc09df06253603f61e792d260afbffc033dea1e28395dda1f6b149a8540e38
|
data/Gemfile
CHANGED
|
@@ -6,6 +6,6 @@ source 'https://rubygems.org'
|
|
|
6
6
|
gemspec
|
|
7
7
|
|
|
8
8
|
group :development do
|
|
9
|
-
gem 'vagrant', :git => 'https://github.com/
|
|
9
|
+
gem 'vagrant', :git => 'https://github.com/hashicorp/vagrant.git', :tag => 'v2.2.1'
|
|
10
10
|
gem 'coveralls', require: true
|
|
11
11
|
end
|
data/README.md
CHANGED
|
@@ -17,7 +17,7 @@ To build and install the plugin directly from this repo:
|
|
|
17
17
|
```
|
|
18
18
|
$ bundle install
|
|
19
19
|
$ bundle exec rake build
|
|
20
|
-
$ vagrant plugin install pkg/vagrant-guests-clearlinux-1.0.
|
|
20
|
+
$ vagrant plugin install pkg/vagrant-guests-clearlinux-1.0.14.gem
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
You can run RSpec with:
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
module VagrantPlugins
|
|
2
|
+
module GuestClearLinux
|
|
3
|
+
module Cap
|
|
4
|
+
class NFS
|
|
5
|
+
def self.nfs_client_installed(machine)
|
|
6
|
+
machine.communicate.test("test -x /usr/bin/mount.nfs")
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
def self.nfs_client_install(machine)
|
|
10
|
+
comm = machine.communicate
|
|
11
|
+
comm.sudo([
|
|
12
|
+
"swupd bundle-add storage-utils",
|
|
13
|
+
"systemctl enable rpcbind",
|
|
14
|
+
"systemctl start rpcbind"
|
|
15
|
+
].join("\n"))
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -23,6 +23,16 @@ module VagrantPlugins
|
|
|
23
23
|
require_relative 'cap/configure_networks'
|
|
24
24
|
Cap::ConfigureNetworks
|
|
25
25
|
end
|
|
26
|
+
|
|
27
|
+
guest_capability('clearlinux', 'nfs_client_installed') do
|
|
28
|
+
require_relative 'cap/nfs_client'
|
|
29
|
+
Cap::NFS
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
guest_capability('clearlinux', 'nfs_client_install') do
|
|
33
|
+
require_relative 'cap/nfs_client'
|
|
34
|
+
Cap::NFS
|
|
35
|
+
end
|
|
26
36
|
end
|
|
27
37
|
end
|
|
28
38
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vagrant-guests-clearlinux
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.14
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- António Meireles
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-11-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -112,6 +112,7 @@ files:
|
|
|
112
112
|
- lib/vagrant-guests-clearlinux.rb
|
|
113
113
|
- lib/vagrant-guests-clearlinux/cap/change_host_name.rb
|
|
114
114
|
- lib/vagrant-guests-clearlinux/cap/configure_networks.rb
|
|
115
|
+
- lib/vagrant-guests-clearlinux/cap/nfs_client.rb
|
|
115
116
|
- lib/vagrant-guests-clearlinux/guest.rb
|
|
116
117
|
- lib/vagrant-guests-clearlinux/plugin.rb
|
|
117
118
|
- lib/vagrant-guests-clearlinux/version.rb
|
|
@@ -141,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
141
142
|
version: '0'
|
|
142
143
|
requirements: []
|
|
143
144
|
rubyforge_project:
|
|
144
|
-
rubygems_version: 2.7.
|
|
145
|
+
rubygems_version: 2.7.7
|
|
145
146
|
signing_key:
|
|
146
147
|
specification_version: 4
|
|
147
148
|
summary: Clear Linux Guest Plugin for Vagrant
|