Vagrant works in such a way that a directory with a Vagrantfile becomes the root of that configuration. When you run `vagrant up`, for example, it reads the Vagrantfile in the current directory, and creates a hidden directory called ".vagrant". If you want to maintain different configurations, then you should have different directories with your Vagrantfile variations.
In your case, use the "coreos-vagrant" directory as the basis for your own configuration. Copy the contents of that directory to a new one of your choosing and make changes to Vagrantfile, config.rb, and user-data according to your needs. Take care to ensure that any relative paths are updated to reflect your changes. For example, https://github.com/numenta/nupic/blob/master/coreos-vagrant/Vagrantfile#L98, which specifies the location of nupic root dir, will need to be fixed. Some particularly important configuration lines specific to provisioning can be found at https://github.com/numenta/nupic/blob/master/coreos-vagrant/Vagrantfile#L12-L17 On Wed, Nov 4, 2015 at 12:05 AM, Cas <[email protected]> wrote: > Hello NuPIC! > > I'd like to work with a vagrant box so I can easily work on a NuPIC > project across different machines. I've started with the Coreos vagrant > box <https://github.com/numenta/nupic/tree/master/coreos-vagrant> > provided in the NuPIC open source project and I've built the NuPIC docker > container on it through ssh. > > Now, I'm new to vagrant but I do know that for my purpose I need to > provision a lot, if not all, of the changes I want to make in the vagrant > box. The best way to then keep track of the changes across different > machines would be to apply versioning to the vagrantfiles. > > Since I'm new to vagrant I'm not sure how I would provision fine grained > changes like OS configurations or a particular branch of a git project. I > would gladly turn to the internet for a generic approach to this, but I was > also hoping some of you have NuPIC-specific experience with custom vagrant > boxes. > > So my question is: how do I provision my own vagrant box based on > https://github.com/numenta/nupic/tree/master/coreos-vagrant? > > Kind regards, > > Casper Rooker > [email protected] >
