Brian Cain
83fea21ff1
Simplify builtin disk action
2019-11-22 14:40:23 -08:00
Brian Cain
e598007237
Add provider specific disk options under provider_config hash
2019-11-22 14:40:23 -08:00
Brian Cain
6c54bf6ad9
Fix logger namespace typo
2019-11-22 14:40:23 -08:00
Brian Cain
d54e870752
Add file option to disk config
2019-11-22 14:40:23 -08:00
Brian Cain
71ad0f7aba
Remove duplicate setting of disks variable
2019-11-22 14:40:23 -08:00
Brian Cain
35f113e759
Put back accidental case switching for comments on provisioner
2019-11-22 14:40:23 -08:00
Brian Cain
9c1d05113f
Update merge comment for disk config
2019-11-22 14:40:23 -08:00
Brian Cain
93828508ec
Update config/vm with tests for disk config
2019-11-22 14:40:23 -08:00
Brian Cain
499e39dd10
Ensure primary is true or false
2019-11-22 14:40:23 -08:00
Brian Cain
a55e3d2b91
Make config.vm.disks accessible instead of internal
2019-11-22 14:40:23 -08:00
Brian Cain
c18f36e516
Fix code comment typo
2019-11-22 14:40:23 -08:00
Brian Cain
ad73969010
Fixup disk config parsing to allow hash and block
2019-11-22 14:40:23 -08:00
Brian Cain
7cfccb5cfd
Update variable docs for disk name
2019-11-22 14:40:23 -08:00
Brian Cain
ee751ca6e1
Add disk name for disk config
2019-11-22 14:40:23 -08:00
Brian Cain
995c4bbc60
Add validation for disk configs
2019-11-22 14:40:23 -08:00
Brian Cain
a18ce4f732
Add primary config option for disk
2019-11-22 14:40:23 -08:00
Brian Cain
393ce9eb1b
Rename drives to disks to match class, and properly merge configs
2019-11-22 14:40:23 -08:00
Brian Cain
28d339eac5
Ensure block is properly passed through to add_config
2019-11-22 14:40:23 -08:00
Brian Cain
ee388d8293
Ensure config is renamed to options
2019-11-22 14:40:23 -08:00
Brian Cain
34673fe5f9
Add disk class function for provider layers
2019-11-22 14:40:23 -08:00
Brian Cain
98a2d0f723
Update internal drives state to be array instead of hash
2019-11-22 14:40:23 -08:00
Brian Cain
abcc334900
Add note about disk options value
2019-11-22 14:40:23 -08:00
Brian Cain
1a21782bd5
Add note about disk name
2019-11-22 14:40:23 -08:00
Brian Cain
e361900d3a
Update doc string for name attribute
2019-11-22 14:40:23 -08:00
Brian Cain
aa5a3ef7f7
Add initial disk management config class
2019-11-22 14:40:23 -08:00
Brian Cain
0aaa2cc147
Fixes #11173 : Show guest name in hostname erorr message
...
This commit adds the machine guest name in the hostname validation error
message so that it's easier to see which guest in a Vagrantfile has the
validation error.
2019-11-04 08:41:51 -08:00
Brian Cain
a22acba467
Simplify line and path checks for exception handling in config loading
2019-09-10 13:27:23 -07:00
Brian Cain
09a37e0767
Fixes #11022 : Ensure correct line is used for windows exceptions
...
Prior to this commit, if there was a config error inside a provider
block, Vagrant wouldn't grab the right backtrace token on windows since
the api is different for ruby on Windows compared to all other
platforms. This commit ensures that the proper line number is chosen so
the error message is correct.
2019-09-06 14:00:46 -07:00
Brian Cain
99b5867559
Update reject to compact
2019-09-05 15:39:24 -07:00
Brian Cain
7b0dc8d528
Update provisioner enhancements from pull request feedback
2019-08-29 13:50:22 -07:00
Brian Cain
07bcfc6077
Add error if both before and after options are set
2019-08-28 16:15:33 -07:00
Brian Cain
fc8bf6aed4
Ensure a dependency provisioner isnt configured to rely on another dependency provisioner
2019-08-28 15:52:38 -07:00
Brian Cain
c192651e90
Make dependency provisioners experimental
2019-08-28 15:09:38 -07:00
Brian Cain
8c39d9bfed
Add dependency provisioner name to error message
2019-08-28 14:30:32 -07:00
Brian Cain
6777493c46
Include before/after options in final provision hash
2019-08-20 11:31:00 -07:00
Brian Cain
6db03f2aed
Check if rejected entries are nil, not blank
2019-08-20 11:30:42 -07:00
Brian Cain
d15bac7fb7
Validate that before/after provisioner exists in machines config
2019-08-19 14:48:06 -07:00
Brian Cain
8ecd32de53
Remove comment
2019-08-19 11:36:54 -07:00
Brian Cain
4933610398
Update rubydoc for before/after return types
2019-08-19 11:33:30 -07:00
Brian Cain
66aac23470
Properly set and validate before/after keys for base provisioner class
2019-08-19 11:23:06 -07:00
Brian Cain
28c0f6085c
Attempt to validate top scope provisioner options
2019-08-06 16:18:58 -07:00
Brian Cain
e05437ddf2
Add validation method and todo
2019-08-06 15:28:04 -07:00
Brian Cain
b82b33d204
Add new before/after options for the base Provisioner class
...
This commit adds two new options: before, after. These string options
refer to other named Provisioners.
2019-08-06 15:28:04 -07:00
Brian Cain
49ae77b2b8
Update doc string for :run option
2019-08-06 15:28:04 -07:00
Brian Cain
57c4de49f2
Remove "command" string from logger
...
Since not all triggers are commands, removing the word `command` from
the logger so it is not confused with other types of triggers.
2019-05-13 13:26:47 -07:00
Brian Cain
68e21d8ac5
Merge pull request #10664 from chrisroberts/f-plugin-config-format
...
Fix format finalization of plugins in Vagrantfile
2019-02-12 10:00:14 -08:00
Brian Cain
0bc0bdd616
Merge pull request #10615 from briancain/introduce-typed-triggers
...
Introduce :type option for Vagrant triggers
2019-02-12 09:16:01 -08:00
Chris Roberts
2e58e002d6
Fix format finalization of plugins in Vagrantfile
2019-02-11 15:48:43 -08:00
Chris Roberts
61cf179b42
Add base address attribute to vm config
2019-02-01 14:47:11 -08:00
Brian Cain
fc4e6e624f
Simplify if-statement in trigger parser
2019-02-01 13:34:15 -08:00