On Automating Choices when Installing/ Upgrades in Box

18 views
Skip to first unread message

Monosij Dutta-Roy

unread,
Mar 30, 2020, 4:50:02 PM3/30/20
to Vagrant

Hi All -

Been using Vagrant for a while, using latest 2.2.7 on Ub. 19.10, and had a question on how to automate choices when installing upgrades to a box - running bash scripts during provisioning.

It does not happen, especially in Ubuntu boxes I use, but happens more than often in Debian/ CentOS boxes - and I have not figured out how to fix them.

So today it happened on the Ubuntu 20.04 box when it ran the script to update the kernel and it was asking with three choices regards update of the boot configuration.

So I can wait until tomorrow and get latest or thought I would ask here and see what I can do to, if not automate, but at least to choose - it does not allow choices manually and the system just hangs by waiting and not allowing to choose.

So just wondering what I can do to better enable this please.

Thus - is there a way to call vagrant up with some options so it takes all default choices on any install options that come up?

Hope my question is clear.

Thank you and best wishes to you all at Hashi and otherwise, and to your friends and family in staying safe.

Mono

Salty Vagrant

unread,
Mar 31, 2020, 7:12:33 AM3/31/20
to Vagrant

I’m guessing you use apt, in which case you might try:

export DEBIAN_FRONTEND=unattended
apt update
apt upgrade -y
--
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/3744846b-9cf4-4d93-8079-b26f62878c78%40googlegroups.com.

Monosij Dutta-Roy

unread,
Mar 31, 2020, 4:59:55 PM3/31/20
to Vagrant

Thanks Salty Vagrant! Will try it out.

Great stuff Saltstack!

Mono
Reply all
Reply to author
Forward
0 new messages