vagrant-persistent-storage 0.0.41 → 0.0.42
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -5
- data/lib/vagrant-persistent-storage/manage_storage.rb +1 -1
- data/lib/vagrant-persistent-storage/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8fea4df76b7cb5b01f9ba4704e8e3fce7ab39670
|
4
|
+
data.tar.gz: 51a041b7a43006744aef7d3a56c797cf49bbd811
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e1f395a5816ff517a0ba44da407263c44029a4e74455fb1bce1524c9d707eea15429fdcae500ceabc8636eb3cbc4257ce0decd7e8c2f900c14e86f7fb693942
|
7
|
+
data.tar.gz: 26db2ae4f77b3b8dec1392f518382ac9e6c4a3d042f2643f0d6aa797cab7440c19f883ebe22a9974619d87575eeb0527e478b83015f76be262a167f60dda8adb
|
data/README.md
CHANGED
@@ -13,7 +13,7 @@ Requires Virtualbox 5
|
|
13
13
|
After installing you can set the location and size of the persistent storage.
|
14
14
|
|
15
15
|
The following options will create a persistent storage with 5000 MB, named mysql,
|
16
|
-
mounted on /var/lib/mysql, in a volume group called '
|
16
|
+
mounted on /var/lib/mysql, in a volume group called 'myvolgroup'
|
17
17
|
```ruby
|
18
18
|
config.persistent_storage.enabled = true
|
19
19
|
config.persistent_storage.location = "~/development/sourcehdd.vdi"
|
@@ -25,7 +25,7 @@ config.persistent_storage.volgroupname = 'myvolgroup'
|
|
25
25
|
```
|
26
26
|
|
27
27
|
With `config.persistent_storage.mountoptions` you can change the mount options (default: defaults).
|
28
|
-
|
28
|
+
An example which sets `prjquota` option with xfs.
|
29
29
|
```ruby
|
30
30
|
config.persistent_storage.mountname = 'xfs'
|
31
31
|
config.persistent_storage.filesystem = 'xfs'
|
@@ -45,7 +45,7 @@ config.persistent_storage.partition = false
|
|
45
45
|
|
46
46
|
Every `vagrant up` will attach this file as hard disk to the guest machine.
|
47
47
|
A `vagrant destroy` will detach the storage to avoid deletion of the storage by vagrant.
|
48
|
-
A `vagrant destroy` generally destroys all attached drives. See [
|
48
|
+
A `vagrant destroy` generally destroys all attached drives. See [VBoxManage unregistervm --delete option][vboxmanage_delete].
|
49
49
|
|
50
50
|
The disk is initialized and added to it's own volume group as specfied in the config;
|
51
51
|
this defaults to 'vagrant'. An ext4 filesystem is created and the disk mounted appropriately,
|
@@ -64,7 +64,7 @@ Options that are irrelevent to Windows are ignored, such as `mountname`, `filesy
|
|
64
64
|
|
65
65
|
## How Is The Storage Created?
|
66
66
|
|
67
|
-
Based on the configuration provided, during a `vagrant up` a bash script is generated and uploaded to `/tmp/disk_operations_#{mnt_name}.sh` (Linux) or `disk_operations_#{mnt_name}.ps1` (Windows). If the box has not been previously provisioned the script is executed on a `vagrant up`. To force the
|
67
|
+
Based on the configuration provided, during a `vagrant up` a bash script is generated and uploaded to `/tmp/disk_operations_#{mnt_name}.sh` (Linux) or `disk_operations_#{mnt_name}.ps1` (Windows). If the box has not been previously provisioned the script is executed on a `vagrant up`. To force the script to be executed again you can run `vagrant provision` or if you have halted the box, `vagrant up --provision`.
|
68
68
|
|
69
69
|
The outcome of the script being run is placed in the home drive of the vagrant user in a file called `disk_operation_log.txt`.
|
70
70
|
|
@@ -76,7 +76,7 @@ config.persistent_storage.part_type_code = '82'
|
|
76
76
|
|
77
77
|
## Troubleshooting
|
78
78
|
|
79
|
-
If your box
|
79
|
+
If your box is not using LVM you must set `config.persistent_storage.use_lvm = false`.
|
80
80
|
|
81
81
|
## Supported Providers
|
82
82
|
|
@@ -105,6 +105,7 @@ If your box are not using LVM you must set `config.persistent_storage.use_lvm =
|
|
105
105
|
* [Philipp Schrader](https://github.com/philsc)
|
106
106
|
* [Alex Tomkins](https://github.com/tomkins)
|
107
107
|
* [Marcin Wolny](https://github.com/mwolny)
|
108
|
+
* [Adam Huffman](https://github.com/verdurin)
|
108
109
|
|
109
110
|
## TODO
|
110
111
|
|
@@ -94,6 +94,7 @@ echo "vg activation returned: $?" >> disk_operation_log.txt
|
|
94
94
|
MNT_NAME=#{mnt_name}
|
95
95
|
[[ `blkid -t LABEL=${MNT_NAME:0:16} | grep #{fs_type}` ]] || mkfs.#{fs_type} -L #{mnt_name} #{device}
|
96
96
|
echo "#{fs_type} creation return: $?" >> disk_operation_log.txt
|
97
|
+
<% end %>
|
97
98
|
<% if mount == true %>
|
98
99
|
# Create mountpoint #{mnt_point}
|
99
100
|
[ -d #{mnt_point} ] || mkdir -p #{mnt_point}
|
@@ -104,7 +105,6 @@ echo "fstab update returned: $?" >> disk_operation_log.txt
|
|
104
105
|
[[ `mount | grep #{mnt_point}` ]] || mount #{mnt_point}
|
105
106
|
echo "#{mnt_point} mounting returned: $?" >> disk_operation_log.txt
|
106
107
|
<% end %>
|
107
|
-
<% end %>
|
108
108
|
exit $?
|
109
109
|
EOF
|
110
110
|
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.42
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian Kusnier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|