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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8a5ff37998160645d4d5cfba0a093ac79ea02c9518d07206b49ad3aaef182f82
4
- data.tar.gz: 621632483ec800d37df645eab25e3dc0a0da94af923fee7310455aad52e696c3
3
+ metadata.gz: 30dc7c93caef4c8a8f363b649eeec799018b0f2af419e23e965b4281f5c5523f
4
+ data.tar.gz: 3745a374bcc078ac4b30a1c7f41bc4679a4f8b70fc44588b43b14b5837849cda
5
5
  SHA512:
6
- metadata.gz: ce7079408022f2bbc44f9eea3815967ccf4db6705f0e857d4ae06610458f77520a929903d1a307a4cd9bc006ebaa5586ba8e4edcaf21f4770720e5a9dd67339d
7
- data.tar.gz: a2888b7170aa36130242da33059585b529f584a7b499ec217dbed4d2f1dbdd0c6a8035e16294c746f716b6c729693e82bc0b1a2465da66d73614ee80a8763131
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.0.3'
10
- gem 'coveralls', require: false
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.12.gem
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("rm /etc/machine-id")
12
- comm.sudo("systemd-machine-id-setup")
13
- comm.sudo("hostnamectl set-hostname #{name.split('.')[0]}")
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
@@ -4,6 +4,6 @@
4
4
  module VagrantPlugins
5
5
  # Set version for vagrant-guests-clearlinux gem.
6
6
  module GuestClearLinux
7
- VERSION = '1.0.12'
7
+ VERSION = '1.0.13'
8
8
  end
9
9
  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::photon::configure_networks")
152
+ @@logger = Log4r::Logger.new("vagrant::guest::clearlinux::configure_networks")
153
153
  end
154
154
 
155
155
  it 'should configure networks without enp0s9' do
@@ -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::GuestClearlinux::Guest)
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.12
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-07-29 00:00:00.000000000 Z
11
+ date: 2018-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler