vagrant-persistent-storage 0.0.43 → 0.0.44

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
  SHA1:
3
- metadata.gz: 0a8f0348728b20c7721a0b846f9be4a64d51ad67
4
- data.tar.gz: 7d6c38360ac0fa416fd5f269bf3a536306f9024c
3
+ metadata.gz: c0c150ceb7eaff53a28ae1acf561970b5a35ec75
4
+ data.tar.gz: 111e5f2f5ef40a711a31f8d40d93d349d7eaa9c4
5
5
  SHA512:
6
- metadata.gz: 42b14395e70fda63fab8a5786dd43d8e93a21926b62b5beaba2b76874f7ce5b6bba71f874238ecb77744f8841c8e08e6d38c6b2e1be64913f48c1c642029e230
7
- data.tar.gz: 82ce8ce3fe1007c1e02f01c3c7e5fcf4f4552255f1337933cb36b0d93536cbeebae3d299dfc0c563bf0ef834ba154be80b4880f712c61b639322427afe0c8c74
6
+ metadata.gz: 52fd811411ae2e8b0b23949c1f2b8ffe2c572ba7ab2575ffb3cb95d0f945250ac24eed14f3de5ea4d3c6c6b8806239f763eb99d2a1b109b1436aaa1e495a7ea1
7
+ data.tar.gz: eea95b5979d7a0f8453c985400b6de4a06dc7cc544476b5deb6d1f465fd17f142b33bf7354abfb31bcc8cb52376a4bd587009b6dd296f4ef689d59a7f68ffcf6
data/README.md CHANGED
@@ -112,6 +112,7 @@ If your box is not using LVM you must set `config.persistent_storage.use_lvm = f
112
112
  * [Marcin Wolny](https://github.com/mwolny)
113
113
  * [Adam Huffman](https://github.com/verdurin)
114
114
  * [caio2k](https://github.com/caio2k)
115
+ * [Francesco](https://github.com/cisco87)
115
116
 
116
117
  ## TODO
117
118
 
@@ -10,11 +10,15 @@ module VagrantPlugins
10
10
  controller_name = get_controller_name
11
11
  if controller_name.nil?
12
12
  controller_name = "SATA Controller"
13
- execute("storagectl", @uuid, "--name", controller_name, "--" + ((@version.start_with?("4.3") || @version.start_with?("5.")) ? "" : "sata") + "portcount", "2", "--add", "sata")
13
+ execute("storagectl", @uuid, "--name", controller_name, "--" + (self.remove_prefix(@version) ? "" : "sata") + "portcount", "2", "--add", "sata")
14
14
  else
15
- execute("storagectl", @uuid, "--name", controller_name, "--" + ((@version.start_with?("4.3") || @version.start_with?("5.")) ? "" : "sata") + "portcount", "2")
15
+ execute("storagectl", @uuid, "--name", controller_name, "--" + (self.remove_prefix(@version) ? "" : "sata") + "portcount", "2")
16
16
  end
17
17
  end
18
+
19
+ def remove_prefix(vbox_version)
20
+ return vbox_version.start_with?("4.3") || vbox_version.start_with?("5.") || vbox_version.start_with?("6.")
21
+ end
18
22
 
19
23
  def create_storage(location, size, variant)
20
24
  execute("createhd", "--filename", File.expand_path(location), "--size", "#{size}", "--variant", "#{variant}")
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module PersistentStorage
3
- VERSION = "0.0.43"
3
+ VERSION = "0.0.44"
4
4
  end
5
5
  end
@@ -7,13 +7,16 @@ VAGRANTFILE_API_VERSION = "2"
7
7
  Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
8
8
 
9
9
  # Every Vagrant virtual environment requires a box to build off of.
10
- config.vm.box = "ubuntu/precise32"
10
+ config.vm.box = "precise32"
11
+
12
+ # The url from where the 'config.vm.box' box will be fetched if it
13
+ # doesn't already exist on the user's system.
14
+ config.vm.box_url = "http://files.vagrantup.com/precise32.box"
11
15
 
12
16
  # configure a persistent storage for mysql data
13
17
  config.persistent_storage.enabled = true
14
18
  config.persistent_storage.location = "virtualdrive.vdi"
15
19
  config.persistent_storage.size = 5000
16
- config.persistent_storage.variant = 'Fixed'
17
20
  config.persistent_storage.mountname = 'mysql'
18
21
  config.persistent_storage.filesystem = 'ext4'
19
22
  config.persistent_storage.mountpoint = '/var/lib/mysql'
@@ -7,13 +7,16 @@ VAGRANTFILE_API_VERSION = "2"
7
7
  Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
8
8
 
9
9
  # Every Vagrant virtual environment requires a box to build off of.
10
- config.vm.box = "ubuntu/precise32"
10
+ config.vm.box = "precise32"
11
+
12
+ # The url from where the 'config.vm.box' box will be fetched if it
13
+ # doesn't already exist on the user's system.
14
+ config.vm.box_url = "http://files.vagrantup.com/precise32.box"
11
15
 
12
16
  # configure a persistent storage for mysql data
13
17
  config.persistent_storage.enabled = true
14
18
  config.persistent_storage.location = "virtualdrive.vdi"
15
19
  config.persistent_storage.size = 5000
16
- config.persistent_storage.variant = 'Standard'
17
20
  config.persistent_storage.mountname = 'mysql'
18
21
  config.persistent_storage.filesystem = 'ext4'
19
22
  config.persistent_storage.mountpoint = '/var/lib/mysql'
@@ -0,0 +1,30 @@
1
+ # -*- mode: ruby -*-
2
+ # vi: set ft=ruby :
3
+
4
+ # Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
5
+ VAGRANTFILE_API_VERSION = "2"
6
+
7
+ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
8
+
9
+ # Every Vagrant virtual environment requires a box to build off of.
10
+ config.vm.box = "precise32"
11
+
12
+ # The url from where the 'config.vm.box' box will be fetched if it
13
+ # doesn't already exist on the user's system.
14
+ config.vm.box_url = "http://files.vagrantup.com/precise32.box"
15
+
16
+ # configure a persistent storage for mysql data
17
+ config.persistent_storage.enabled = true
18
+ config.persistent_storage.location = "virtualdrive.vdi"
19
+ config.persistent_storage.size = 5000
20
+ config.persistent_storage.variant = 'Fixed'
21
+ config.persistent_storage.mountname = 'mysql'
22
+ config.persistent_storage.filesystem = 'ext4'
23
+ config.persistent_storage.mountpoint = '/var/lib/mysql'
24
+ config.persistent_storage.volgroupname = 'myvolgroup'
25
+
26
+ config.vm.provision "fix-no-tty", type: "shell" do |s|
27
+ s.privileged = false
28
+ s.inline = "sudo sed -i '/tty/!s/mesg n/tty -s \\&\\& mesg n/' /root/.profile"
29
+ end
30
+ end
@@ -0,0 +1,30 @@
1
+ # -*- mode: ruby -*-
2
+ # vi: set ft=ruby :
3
+
4
+ # Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
5
+ VAGRANTFILE_API_VERSION = "2"
6
+
7
+ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
8
+
9
+ # Every Vagrant virtual environment requires a box to build off of.
10
+ config.vm.box = "precise32"
11
+
12
+ # The url from where the 'config.vm.box' box will be fetched if it
13
+ # doesn't already exist on the user's system.
14
+ config.vm.box_url = "http://files.vagrantup.com/precise32.box"
15
+
16
+ # configure a persistent storage for mysql data
17
+ config.persistent_storage.enabled = true
18
+ config.persistent_storage.location = "virtualdrive.vdi"
19
+ config.persistent_storage.size = 5000
20
+ config.persistent_storage.variant = 'Standard'
21
+ config.persistent_storage.mountname = 'mysql'
22
+ config.persistent_storage.filesystem = 'ext4'
23
+ config.persistent_storage.mountpoint = '/var/lib/mysql'
24
+ config.persistent_storage.volgroupname = 'myvolgroup'
25
+
26
+ config.vm.provision "fix-no-tty", type: "shell" do |s|
27
+ s.privileged = false
28
+ s.inline = "sudo sed -i '/tty/!s/mesg n/tty -s \\&\\& mesg n/' /root/.profile"
29
+ end
30
+ 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.43
4
+ version: 0.0.44
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Kusnier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-01 00:00:00.000000000 Z
11
+ date: 2019-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -68,6 +68,8 @@ files:
68
68
  - sample-vm/.gitignore
69
69
  - sample-vm/partition-false.vagrantfile
70
70
  - sample-vm/partition-true.vagrantfile
71
+ - sample-vm/variant-fixed.vagrantfile
72
+ - sample-vm/variant-standard.vagrantfile
71
73
  - sample-win-vm/Vagrantfile
72
74
  - test.sh
73
75
  - vagrant-persistent-storage.gemspec