vagrant-persistent-storage 0.0.3 → 0.0.4
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
|
-
SHA1:
|
3
|
-
data.tar.gz: 5610de0834a33052cd9cfaaab79837b01261e7f2
|
4
|
-
metadata.gz: ce4f88ee39f8753b7d3e06bbcffb961d9a8e630b
|
5
2
|
SHA512:
|
6
|
-
|
7
|
-
|
3
|
+
metadata.gz: af264b1c4981e6a497dd23ce60afd8e8a168f23510af6d321bc4d6b8e6aa6743d9ac208c8b6dbd7c7e0d6b70b726bbe1c234130a34c6983abf7efaa0f21ac8d8
|
4
|
+
data.tar.gz: 012866e821241324a164cbf8478d4b959e0e23fe53f696e6190816a18d105549b45a9219d1c03faa5fe42ac6f24b1ace1a3de4251f3d6da72fb9411e45a20e9f
|
5
|
+
SHA1:
|
6
|
+
metadata.gz: 154ccdb55fe18aeaf93bbc2a7b281627702d8416
|
7
|
+
data.tar.gz: 85e3a706533b2b2f02557b4bb2d8bcb755dc7b51
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'pathname'
|
2
|
+
|
1
3
|
module VagrantPlugins
|
2
4
|
module ProviderVirtualBox
|
3
5
|
module Driver
|
@@ -16,7 +18,7 @@ module VagrantPlugins
|
|
16
18
|
end
|
17
19
|
|
18
20
|
def detach_storage(location)
|
19
|
-
if location and read_persistent_storage(location)
|
21
|
+
if location and identical_files(read_persistent_storage(location), location)
|
20
22
|
execute("storageattach", @uuid, "--storagectl", "SATA Controller", "--port", "1", "--device", "0", "--type", "hdd", "--medium", "none")
|
21
23
|
end
|
22
24
|
end
|
@@ -31,6 +33,10 @@ module VagrantPlugins
|
|
31
33
|
nil
|
32
34
|
end
|
33
35
|
|
36
|
+
def identical_files(file1, file2)
|
37
|
+
return File.identical?(Pathname.new(file1).realpath, Pathname.new(file2).realpath)
|
38
|
+
end
|
39
|
+
|
34
40
|
end
|
35
41
|
end
|
36
42
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
.vagrant
|
@@ -0,0 +1,25 @@
|
|
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.mountname = 'mysql'
|
21
|
+
config.persistent_storage.filesystem = 'ext4'
|
22
|
+
config.persistent_storage.mountpoint = '/var/lib/mysql'
|
23
|
+
config.persistent_storage.volgroupname = 'myvolgroup'
|
24
|
+
|
25
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian Kusnier
|
@@ -9,27 +9,27 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2013-09-
|
12
|
+
date: 2013-09-25 00:00:00 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
+
type: :development
|
15
16
|
name: rake
|
16
|
-
|
17
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
17
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
19
|
- &id002
|
20
20
|
- ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: "0"
|
23
|
-
|
24
|
-
|
23
|
+
prerelease: false
|
24
|
+
requirement: *id001
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
|
+
type: :development
|
26
27
|
name: rspec
|
27
|
-
|
28
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
28
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
29
29
|
requirements:
|
30
30
|
- *id002
|
31
|
-
|
32
|
-
|
31
|
+
prerelease: false
|
32
|
+
requirement: *id003
|
33
33
|
description: A Vagrant plugin that creates a persistent storage and attaches it to guest machine.
|
34
34
|
email:
|
35
35
|
- sebastian@kusnier.net
|
@@ -58,6 +58,8 @@ files:
|
|
58
58
|
- lib/vagrant-persistent-storage/providers/virtualbox/driver/meta.rb
|
59
59
|
- lib/vagrant-persistent-storage/version.rb
|
60
60
|
- locales/en.yml
|
61
|
+
- sample-vm/.gitignore
|
62
|
+
- sample-vm/Vagrantfile
|
61
63
|
- vagrant-persistent-storage.gemspec
|
62
64
|
homepage: https://github.com/kusnier/vagrant-persistent-storage
|
63
65
|
licenses: []
|