You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26-6
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,16 @@ resolution of multi-machine environments deployed with a cloud provider
6
6
where IP addresses are not known in advance.
7
7
8
8
*NOTE:* Version 1.1 of the plugin prematurely introduced a feature to hook into
9
-
commands other than `vagrant up` and `vagrant destroy`. Version 1.1 broke support for some providers. Version 1.2 reverts this feature until a suitable implementation supporting all providers is available.
9
+
commands other than `vagrant up` and `vagrant destroy`. Version 1.1 broke support
10
+
for some providers. Version 1.2 reverts this feature until a suitable implementation
11
+
supporting all providers is available.
12
+
13
+
***Potentially breaking change in v1.5.0:*** the running order on `vagrant up` has changed
14
+
so that hostmanager runs before provisioning takes place. This ensures all hostnames are
15
+
available to the guest when it is being provisioned
16
+
(see [#73](https://github.com/smdahlen/vagrant-hostmanager/issues/73)).
17
+
Previously, hostmanager would run as the very last action. If you depend on the old behavior,
18
+
see the [provisioner](#provisioner) section.
10
19
11
20
Installation
12
21
------------
@@ -61,15 +70,26 @@ Vagrant.configure("2") do |config|
61
70
end
62
71
```
63
72
64
-
As a last option, you can use hostmanager as a provisioner.
65
-
This allows you to use the provisioning order to ensure that hostmanager
66
-
runs before or after provisioning. The provisioner will collect hosts from
67
-
boxes with the same provider as the running box.
73
+
### Provisioner
74
+
75
+
Starting at version 1.5.0, hostmanager runs before any provisioning occurs. If you
76
+
would like hostmanager to run after or during your provisioning stage,
77
+
you can use hostmanager as a provisioner. This allows you to use the provisioning
78
+
order to ensure that hostmanager runs when desired. The provisioner will collect
79
+
hosts from boxes with the same provider as the running box.
68
80
69
-
Use:
81
+
Example:
70
82
71
83
```ruby
84
+
# Disable the default hostmanager behavior
85
+
config.hostmanager.enabled =false
86
+
87
+
# ... possible provisioner config before hostmanager ...
88
+
89
+
# hostmanager provisioner
72
90
config.vm.provision :hostmanager
91
+
92
+
# ... possible provisioning config after hostmanager ...
0 commit comments