Note that there are some explanatory texts on larger screens.

plurals
  1. POUsing Vagrant to manage development and production environments?
    primarykey
    data
    text
    <p>How are people handling simple automation (with puppet) for dev / prod environments with vagrant (ideally from the same vagrantfile)?</p> <p><strong>Use case I'm trying to solve</strong></p> <ul> <li>I would love to spin up the the production machine with vagrant if it isn't created.</li> <li>I would love to reload nginx or apache confs on production with vagrant if they were tweaked in the puppet files for my dev environment.</li> </ul> <p><strong>The Problem</strong></p> <p>When you call vagrant up with a provider like AWS or Digital Ocean, it becomes the active provider and you can't switch. You get this error:</p> <blockquote> <p>An active machine was found with a different provider. Vagrant currently allows each machine to be brought up with only a single provider at a time. A future version will remove this limitation. Until then, please destroy the existing machine to up with a new provider.</p> </blockquote> <p>It seems the answer it to destroy, but I just need to switch. I don't want to destroy.</p> <p>I would love to be able to say</p> <pre><code>vagrant up prod </code></pre> <p>or</p> <pre><code>vagrant reload prod </code></pre> <p>and then a simple vagrant up would fall back to the default machine.</p> <p>This syntax is similar to how <a href="http://docs.vagrantup.com/v2/multi-machine/index.html" rel="nofollow noreferrer">multiple machines</a> work, but I don't want to spin up a dev and production environment when I just call vagrant up (which is the default behavior). </p> <p>Should I be looking at packer as part of the workflow? I watched the whole talk at puppetconf 2013 on Mitchell's talk on Multi-Provider <a href="http://puppetlabs.com/presentations/multi-provider-vagrant-aws-vmware-and-more" rel="nofollow noreferrer">http://puppetlabs.com/presentations/multi-provider-vagrant-aws-vmware-and-more</a></p> <p>I'm still not seeing a solution for my problem.</p> <hr> <p><strong>UPDATE 9/27/13</strong></p> <p>In case anybody else is fighting this idea, this article cleared up a lot of questions I had. <a href="http://pretengineer.com/post/packer-vagrant-infra" rel="nofollow noreferrer">http://pretengineer.com/post/packer-vagrant-infra</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload