Skip to content

Commit

Permalink
Rename Vagrantfile.example to Vagrantfile.
Browse files Browse the repository at this point in the history
@abitrolly recently sent a PR[0] to document the
VAGRANT_VAGRANTFILE environment variable, and through discussion
there I was convinced that it was better to have a Vagrantfile
checked in to the root of the repository. This commit makes that
change, and it documents how developers can use a custom
Vagrantfile if they so choose.

This commit was based on the change[0] submitted by @abitrolly.

[0] #2262

Signed-off-by: Randy Barlow <[email protected]>
  • Loading branch information
bowlofeggs committed Jun 6, 2018
1 parent 25d13a4 commit e985fa3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
.vagrant
.vagrant.d
MANIFEST
Vagrantfile
bodhi-pickledb*
bodhi.db*
build
Expand Down
File renamed without changes.
12 changes: 9 additions & 3 deletions docs/developer/vagrant.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@ get started, simply use these commands::
$ sudo dnf install ansible libvirt vagrant-libvirt vagrant-sshfs
$ sudo systemctl enable libvirtd
$ sudo systemctl start libvirtd
$ cp devel/Vagrantfile.example Vagrantfile
# Make sure your bodhi checkout is your shell's cwd

Check out the code and run ``vagrant up ``::

$ git clone https://github.com/fedora-infra/bodhi
$ cd bodhi
$ vagrant up

``Vagrantfile.example`` sets up a port forward from the host machine's port 6543 into the Vagrant
The ``Vagrantfile`` sets up a port forward from the host machine's port 6543 into the Vagrant
guest's port 6543, so you can now visit http://localhost:6543 with your browser to see your Bodhi
development instance if your browser is on the same host as the Vagrant host. If not, you will need
to connect to port 6543 on your Vagrant host, which is an exercise left for the reader.
Expand Down Expand Up @@ -81,3 +84,6 @@ When you are done with your Vagrant guest, you can destroy it permanently by run
the host::

$ vagrant destroy

If you wish to use a custom ``Vagrantfile``, you can set the environment variable
``VAGRANT_VAGRANTFILE`` as a path to a script.

0 comments on commit e985fa3

Please sign in to comment.