i run all my commands from vagrant, just be sure those commans won't break anything if they run 2 or more times
Have a look at this: https://github.com/kikitux/packer-vagrant-oracle/blob/master/vagrant/rac/Vagrantfile On Sat, Feb 8, 2014 at 2:15 PM, Noel Broda <[email protected]> wrote: > Hi Alvaro. > Thank you for the quickly response. > > So, I was thinking about do something like that: > In the file of initialization of vagrant, do NOTHING. > And do everything into the VM, in linux, with a file executed at begin of > power on of the VM. But, in this way, I will lose the "magic" of Vagrant. > In this file, i will check if any software is not installed, and if is not > installed: do the installation. > > But, is a pity, because in this way, I can reemplace Vagrant for: Create a > VM with linux and power on the VM. > > El viernes, 7 de febrero de 2014 18:35:50 UTC-3, Alvaro Miranda Aguilera > escribió: >> >> is all or nothing, so you need to make sure your scripts are idempotent. >> >> http://en.wikipedia.org/wiki/Idempotence >> >> Example, I have Vagrant files that update OS, and format en mount hard >> drives >> >> re-running the update is not harmful, so nothing to do >> >> but, I check if the disk is used before creatn partitions and mounting. >> >> you shoudl install software that is not installed, in that way, if you >> provision 2 times nothing wrong will happen. >> >> Require a bit extra time on the scripts, but now I have an Oracle Rac >> cluster, that if I provision twice, nothing gets broken on the 2nd run. >> >> Hope this helps. >> Alvaro >> >> >> On Sat, Feb 8, 2014 at 9:59 AM, Noel Broda <[email protected]> wrote: >> >>> Hi guys! >>> I have a bootstrap file very large. >>> In the file I execute a lot of apt-get and sometimes the servers are >>> down, so, the vagrant up close the execution. >>> >>> For example, a few minutes ago, the last line executed was: >>> pear channel-discover components.ez.no >>> >>> and then, the executed finish. >>> I re-executed the vagrant up and everything is ok (so, I was thinking >>> that the components.ez.no was down for a minute). >>> >>> How can I resume the execution? Or, whats do you do when you have this >>> problem? >>> >>> Tnks! >>> >>> -- >>> 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 [email protected]. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >> >> -- > 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 [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
