vagrant-persistent-storage 0.0.43 → 0.0.44
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/README.md +1 -0
- data/lib/vagrant-persistent-storage/providers/virtualbox/driver/base.rb +6 -2
- data/lib/vagrant-persistent-storage/version.rb +1 -1
- data/sample-vm/partition-false.vagrantfile +5 -2
- data/sample-vm/partition-true.vagrantfile +5 -2
- data/sample-vm/variant-fixed.vagrantfile +30 -0
- data/sample-vm/variant-standard.vagrantfile +30 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0c150ceb7eaff53a28ae1acf561970b5a35ec75
|
4
|
+
data.tar.gz: 111e5f2f5ef40a711a31f8d40d93d349d7eaa9c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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, "--" + (
|
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, "--" + (
|
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}")
|
@@ -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 = "
|
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 = "
|
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.
|
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-
|
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
|