vagrant-guests-clearlinux 1.0.12 → 1.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -2
- data/README.md +1 -1
- data/lib/vagrant-guests-clearlinux/cap/change_host_name.rb +8 -3
- data/lib/vagrant-guests-clearlinux/version.rb +1 -1
- data/spec/cap/configure_networks_spec.rb +1 -1
- data/spec/plugin_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30dc7c93caef4c8a8f363b649eeec799018b0f2af419e23e965b4281f5c5523f
|
4
|
+
data.tar.gz: 3745a374bcc078ac4b30a1c7f41bc4679a4f8b70fc44588b43b14b5837849cda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7693a426b1b6c71351c66973630ecebdaea448dadaade4f10c6e689a1390e7c8a1d5656e635263c3b55480b1e7f7d4aa6985da34bbce341de49dbb0e20270fd
|
7
|
+
data.tar.gz: 37ce7811d256a75ba1d2231c01770fe3d0f9f589d54fbc6fb83208ca2e55dcda3879d1dd24f74acf107beccf53b4781ea8c237ba7e3da36cb7aacc484fccdb21
|
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/mitchellh/vagrant.git', :tag => 'v2.
|
10
|
-
gem 'coveralls', require:
|
9
|
+
gem 'vagrant', :git => 'https://github.com/mitchellh/vagrant.git', :tag => 'v2.1.5'
|
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.13.gem
|
21
21
|
```
|
22
22
|
|
23
23
|
You can run RSpec with:
|
@@ -8,9 +8,14 @@ module VagrantPlugins
|
|
8
8
|
def self.change_host_name(machine, name)
|
9
9
|
machine.communicate.tap do |comm|
|
10
10
|
unless comm.test("hostnamectl --static | grep '#{name}'")
|
11
|
-
comm.sudo(
|
12
|
-
|
13
|
-
|
11
|
+
comm.sudo([
|
12
|
+
"rm /etc/machine-id",
|
13
|
+
"systemd-machine-id-setup",
|
14
|
+
"hostnamectl set-hostname --static '#{name}'",
|
15
|
+
"hostnamectl set-hostname --transient '#{name}'",
|
16
|
+
"hostnamectl set-hostname --set-chassis vm",
|
17
|
+
"systemctl restart systemd-networkd.service"
|
18
|
+
].join("\n"))
|
14
19
|
end
|
15
20
|
end
|
16
21
|
end
|
@@ -149,7 +149,7 @@ describe VagrantPlugins::GuestClearLinux::Cap::ConfigureNetworks do
|
|
149
149
|
before do
|
150
150
|
communicate.stub(:sudo).with("ifconfig -a | grep -E '^enp|^eth' | cut -f1 -d' '")
|
151
151
|
.and_yield(nil, interfaces)
|
152
|
-
@@logger = Log4r::Logger.new("vagrant::guest::
|
152
|
+
@@logger = Log4r::Logger.new("vagrant::guest::clearlinux::configure_networks")
|
153
153
|
end
|
154
154
|
|
155
155
|
it 'should configure networks without enp0s9' do
|
data/spec/plugin_spec.rb
CHANGED
@@ -8,7 +8,7 @@ require 'vagrant-guests-clearlinux/cap/configure_networks'
|
|
8
8
|
|
9
9
|
describe VagrantPlugins::GuestClearLinux::Plugin do
|
10
10
|
it 'should be loaded with ClearLinux' do
|
11
|
-
expect(described_class.components.guests[:clearlinux].first).to eq(VagrantPlugins::
|
11
|
+
expect(described_class.components.guests[:clearlinux].first).to eq(VagrantPlugins::GuestClearLinux::Guest)
|
12
12
|
end
|
13
13
|
|
14
14
|
{
|
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.13
|
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-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|