Skip to content

Commit

Permalink
#86 - Amended post Bringing machine 'draft-environment' up with 'virt…
Browse files Browse the repository at this point in the history
…ualbox' provider...

==> draft-environment: [vagrant-hostmanager:guests] Updating hosts file on active guest virtual machines...
==> draft-environment: [vagrant-hostmanager:host] Updating hosts file on your workstation (password may be required)...
==> draft-environment: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> draft-environment: flag to force provisioning. Provisioners marked to run always will still run.

==> draft-environment: Machine 'draft-environment' has a post `vagrant up` message. This is a message
==> draft-environment: from the creator of the Vagrantfile, and not from Vagrant itself:
==> draft-environment:
==> draft-environment: The app is accessible at any of these addresses:
==> draft-environment:   - https://10.10.6.243/
==> draft-environment:   - https://draft-environment.test/
==> draft-environment:   - https://aaaa.ffff/ message in order to make it more readable
  • Loading branch information
T2L committed Jan 17, 2019
1 parent 12c78f1 commit 8de4c29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
remove the loop. This feature will be removed in version 2.11. Deprecation
warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
```
- [GH-86](https://github.com/lemberg/draft-environment/issues/86) - Amended post `vagrant up` message in order to make it more readable

## Draft Environment 3.0.0-beta3, 2016-10-26

Expand Down
6 changes: 3 additions & 3 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,10 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
end

# Display an informational message to the user.
message = "The app is running at http(s)://" + configuration.get("vagrant.ip_address") + " and http(s)://" + configuration.get("vagrant.hostname")
available_hosts = [configuration.get("vagrant.ip_address"), configuration.get("vagrant.hostname")]
unless configuration.get("vagrant.host_aliases").empty?
message += ". Alternatively app can be reached at http(s)://" + configuration.get("vagrant.host_aliases").join(" or http(s)://")
available_hosts.concat(configuration.get("vagrant.host_aliases"))
end
config.vm.post_up_message = message
config.vm.post_up_message = "The app is accessible at any of these addresses:\n - https://" + available_hosts.join("/\n - https://") + "/"

end

0 comments on commit 8de4c29

Please sign in to comment.