Discussion:
[vagrant-up] Global post-up message with multiple machine configurations.
Hakan Bayındır
2018-09-30 20:46:06 UTC
Permalink
Hello all,

I've created a new Vagrantfile which builds and creates two VMs. The VMs
work fine, however for additional instructions I want to use the global
post-up message (via config.vm.post_up_message). While specific VMs'
post-up messages are shown, but the global one is just ignored.

Did anyone experienced something similar? Is this expected?

Regards,

Hakan
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/8e1d71a2-fd58-4399-94c9-2d91754b1cd1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Alvaro Miranda Aguilera
2018-10-02 18:51:34 UTC
Permalink
Hi

Can you test this?

Vagrant.configure("2") do |config|

config.vm.box = "hashicorp/precise64"


config.vm.define vm_name = "web01" do |web|

web.vm.post_up_message = "web01 post"

web.vm.hostname = vm_name

end


config.vm.define vm_name = "db01" do |db|

db.vm.post_up_message = "db01 post"

db.vm.hostname = vm_name

end


end

Alvaro
Post by Hakan Bayındır
Hello all,
I've created a new Vagrantfile which builds and creates two VMs. The VMs
work fine, however for additional instructions I want to use the global
post-up message (via config.vm.post_up_message). While specific VMs'
post-up messages are shown, but the global one is just ignored.
Did anyone experienced something similar? Is this expected?
Regards,
Hakan
--
This mailing list is governed under the HashiCorp Community Guidelines -
https://www.hashicorp.com/community-guidelines.html. Behavior in
violation of those guidelines may result in your removal from this mailing
list.
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/vagrant-up/8e1d71a2-fd58-4399-94c9-2d91754b1cd1%40googlegroups.com
<https://groups.google.com/d/msgid/vagrant-up/8e1d71a2-fd58-4399-94c9-2d91754b1cd1%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
Alvaro
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0eywzd46-B%2Bzomz29pHEi9TyyrYp%2BVjHLTRKZUCPdvb0zw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Hakan Bayındır
2018-10-04 09:53:32 UTC
Permalink
Hi,

I've tested the configuration, however only the inner VM's post up messages
are displayed. The global message is missing again. I'm attaching my
complete Vagrantfile. There's nothing confidential inside it.

Thanks again,

Regards,

Hakan

On Tuesday, October 2, 2018 at 9:51:52 PM UTC+3, Alvaro Miranda Aguilera
Post by Alvaro Miranda Aguilera
Hi
Can you test this?
Vagrant.configure("2") do |config|
config.vm.box = "hashicorp/precise64"
config.vm.define vm_name = "web01" do |web|
web.vm.post_up_message = "web01 post"
web.vm.hostname = vm_name
end
config.vm.define vm_name = "db01" do |db|
db.vm.post_up_message = "db01 post"
db.vm.hostname = vm_name
end
end
Alvaro
Post by Hakan Bayındır
Hello all,
I've created a new Vagrantfile which builds and creates two VMs. The VMs
work fine, however for additional instructions I want to use the global
post-up message (via config.vm.post_up_message). While specific VMs'
post-up messages are shown, but the global one is just ignored.
Did anyone experienced something similar? Is this expected?
Regards,
Hakan
--
This mailing list is governed under the HashiCorp Community Guidelines -
https://www.hashicorp.com/community-guidelines.html. Behavior in
violation of those guidelines may result in your removal from this mailing
list.
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/vagrant-up/8e1d71a2-fd58-4399-94c9-2d91754b1cd1%40googlegroups.com
<https://groups.google.com/d/msgid/vagrant-up/8e1d71a2-fd58-4399-94c9-2d91754b1cd1%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
Alvaro
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/92b9e676-71f6-44ea-859e-7f5fbc4d9f22%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...