vagrant-persistent-storage 0.0.20 → 0.0.21

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c44aa27915bb837bd9cda1ad7a4632012599bf92
4
- data.tar.gz: 8585bc05e15e66711b291fa706d3cd718ea44edd
3
+ metadata.gz: 4094fb8daabaa141f9b2eba3dc058a096baccf4c
4
+ data.tar.gz: 11083b648cba97e4dafc1f958130e3d7ebb83f85
5
5
  SHA512:
6
- metadata.gz: 6a5613594cc74e5d87ce728b888766a382fb59c52aaa6a6ef3120d512d0b8dff444a242625c447a53c841c0364627e879cb5d512dde62d75e31ab68b116da7f8
7
- data.tar.gz: 79748544455ad50434386beb50264cc5c8173d23cd492bf7e5628f316f4cdbf5bd2bb42e709a89717a03522e47747b55cececa8675e11241755fb2ff14192536
6
+ metadata.gz: 6ff1e067ffab5494cbda46af0e2898e0bb0dbe8a91f97909fb161378a8586090f999268321e8cf2c6b32465fdf8f319186e07949608548063369fa4db76b72a5
7
+ data.tar.gz: 50075c6db9a2cf90f4dae245385e7a884f306bc264e5bedbb83979b92f85ff2ddb9bdc03062ec45a1976e7bc19273eb78d81cb4c1c891afa4773e95fdfd49c8d
data/README.md CHANGED
@@ -75,6 +75,8 @@ If your box are not using LVM you must set `config.persistent_storage.use_lvm =
75
75
  * [k2s](https://github.com/k2s)
76
76
  * [vvavrychuk](https://github.com/vvavrychuk)
77
77
  * [Lars Hupfeldt Nielsen](https://github.com/lhupfeldt)
78
+ * [Chen Yu Pao](https://github.com/windperson)
79
+ * [Kris Reese](https://github.com/ktreese)
78
80
 
79
81
  ## TODO
80
82
 
@@ -32,7 +32,7 @@ module VagrantPlugins
32
32
  mnt_options = ['defaults'] unless mnt_options != 0
33
33
  fs_type = 'ext3' unless fs_type != 0
34
34
  if use_lvm
35
- device = "/dev/#{vg_name}-vg1/#{mnt_name}"
35
+ device = "/dev/#{vg_name}/#{mnt_name}"
36
36
  else
37
37
  device = "#{disk_dev}1"
38
38
  end
@@ -71,13 +71,13 @@ echo "fdisk returned: $?" >> disk_operation_log.txt
71
71
  [[ `pvs #{disk_dev}1` ]] || pvcreate #{disk_dev}1
72
72
  echo "pvcreate returned: $?" >> disk_operation_log.txt
73
73
  # Create the volume group if it doesn't already exist:
74
- [[ `vgs #{vg_name}-vg1` ]] || vgcreate #{vg_name}-vg1 #{disk_dev}1
74
+ [[ `vgs #{vg_name}` ]] || vgcreate #{vg_name} #{disk_dev}1
75
75
  echo "vgcreate returned: $?" >> disk_operation_log.txt
76
76
  # Create the logical volume if it doesn't already exist:
77
- [[ `lvs #{vg_name}-vg1 | grep #{mnt_name}` ]] || lvcreate -l 100%FREE -n #{mnt_name} #{vg_name}-vg1
77
+ [[ `lvs #{vg_name} | grep #{mnt_name}` ]] || lvcreate -l 100%FREE -n #{mnt_name} #{vg_name}
78
78
  echo "lvcreate returned: $?" >> disk_operation_log.txt
79
79
  # Activate the volume group if it's inactive:
80
- [[ `lvs #{vg_name}-vg1 --noheadings --nameprefixes | grep LVM2_LV_ATTR | grep "wi\-a"` ]] || vgchange #{vg_name}-vg1 -a y
80
+ [[ `lvs #{vg_name} --noheadings --nameprefixes | grep LVM2_LV_ATTR | grep "wi\-a"` ]] || vgchange #{vg_name} -a y
81
81
  echo "vg activation returned: $?" >> disk_operation_log.txt
82
82
  <% end %>
83
83
 
@@ -25,7 +25,7 @@ module VagrantPlugins
25
25
  controller_name = "SATA Controller"
26
26
  end
27
27
 
28
- if controller_name == "IDE Controller"
28
+ if controller_name.start_with?("IDE")
29
29
  execute("storageattach", @uuid, "--storagectl", get_controller_name, "--port", "1", "--device", "0", "--type", "hdd", "--medium", "#{location}")
30
30
  else
31
31
  execute("storageattach", @uuid, "--storagectl", get_controller_name, "--port", "1", "--device", "0", "--type", "hdd", "--medium", "#{location}", "--hotpluggable", "on")
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module PersistentStorage
3
- VERSION = "0.0.20"
3
+ VERSION = "0.0.21"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-persistent-storage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.20
4
+ version: 0.0.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Kusnier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-20 00:00:00.000000000 Z
11
+ date: 2016-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake