A
A
Arvid Godyuk2014-06-11 18:11:56
linux
Arvid Godyuk, 2014-06-11 18:11:56

Vagrant - updating boxes

Good afternoon!
I am studying vagrant, I made my own base box and the question arose - is it possible to somehow update an already installed box to a new version? And if so, how? At the moment, all my experiments and googling indicate that I will have to demolish the old VM and re-initialize the vagrant box of the new version.
The second question is what is better to use for standalone provisioning? Chef?
I want the box to already have configured software after installation, and if I correctly name the life cycle of the boxes - when a new version is released, we delete the old one and initialize the new one, which installs all the necessary software through provision, including the new one that I added to new version. So?
Those. now I have a box that I set up, registered autostarts and everything else, and at startup it immediately gives me a working environment that is already running. Those. without provision - I just packed the virtual machine into a box. And the problem is that I can’t update it later - all the software that I install and configure appears only if I demolish the old VM and create a new one. Is this the only way vagrant can do it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artem Nalivaiko, 2014-06-11
@xzirrow

" Finally, you can update boxes with vagrant box update . This will download and install the new box. This will not magically update running Vagrant environments. If a Vagrant environment is already running, you'll have to destroy and recreate it to acquire the new updates in the box. The update command just downloads these updates locally. "
taken from here

D
Dmitry, 2014-06-12
@ExileeD

1. Why update the installed box to a new version. You can update the software inside the installed box via provision.
2. Yes, you understood correctly.
I update the box as soon as a new OS comes out, and the software is updated through Chef.
Understand some version control system (Chef, Puppet) this will give more advanced settings for installing software

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question