Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add miq_vagrant_master script #13

Merged
merged 1 commit into from
Jul 23, 2019
Merged

Add miq_vagrant_master script #13

merged 1 commit into from
Jul 23, 2019

Conversation

NickLaMuro
Copy link
Owner

This script is a helper script for downloading and versioning vagrant images from http://releases.manageiq.org/ for the nightly (master) builds.

$ ./miq_vagrant_master/cli
==> box: Loading metadata for box '/tmp/20190702-13714-1ti54l2'
    box: URL: file:///tmp/20190702-13714-1ti54l2
==> box: Adding box 'manageiq/master' (v20190629) for provider: virtualbox
    box: Downloading: http://releases.manageiq.org/manageiq-vagrant-master-20190629-b20592c188.box
    box: Download redirected to host: XXXXXX-XXXXXX.rXX.cXX.rackcdn.com
==> box: Successfully added box 'manageiq/master' (v20190629) for 'virtualbox'!
$ ./miq_vagrant_master/cli --sha f06ea8cf96
==> box: Loading metadata for box '/tmp/20190702-14786-xn9js2'
    box: URL: file:///tmp/20190702-14786-xn9js2
==> box: Adding box 'manageiq/master' (v20190627) for provider: virtualbox
    box: Downloading: http://releases.manageiq.org/manageiq-vagrant-master-20190627-f06ea8cf96.box
    box: Download redirected to host: XXXXXX-XXXXXX.rXX.cXX.rackcdn.com
==> box: Successfully added box 'manageiq/master' (v20190627) for 'virtualbox'!
$ vagrant box list
manageiq/fine            (virtualbox, 6.4.0)
manageiq/gaprindashvili  (virtualbox, 7.3.0)
manageiq/gaprindashvili  (virtualbox, 7.4.0)
manageiq/hammer          (virtualbox, 8.1.0-beta2)
manageiq/hammer          (virtualbox, 8.5.1)
manageiq/hammer          (virtualbox, 8.6.0)
manageiq/master          (virtualbox, 20190627)
manageiq/master          (virtualbox, 20190629)

This script is a helper script for downloading and versioning `vagrant`
images from http://releases.manageiq.org/ for the nightly (master)
builds.

    $ ./miq_vagrant_master/cli
    ==> box: Loading metadata for box '/tmp/20190702-13714-1ti54l2'
        box: URL: file:///tmp/20190702-13714-1ti54l2
    ==> box: Adding box 'manageiq/master' (v20190629) for provider: virtualbox
        box: Downloading: http://releases.manageiq.org/manageiq-vagrant-master-20190629-b20592c188.box
        box: Download redirected to host: XXXXXX-XXXXXX.rXX.cXX.rackcdn.com
    ==> box: Successfully added box 'manageiq/master' (v20190629) for 'virtualbox'!
    $ ./miq_vagrant_master/cli --sha f06ea8cf96
    ==> box: Loading metadata for box '/tmp/20190702-14786-xn9js2'
        box: URL: file:///tmp/20190702-14786-xn9js2
    ==> box: Adding box 'manageiq/master' (v20190627) for provider: virtualbox
        box: Downloading: http://releases.manageiq.org/manageiq-vagrant-master-20190627-f06ea8cf96.box
        box: Download redirected to host: XXXXXX-XXXXXX.rXX.cXX.rackcdn.com
    ==> box: Successfully added box 'manageiq/master' (v20190627) for 'virtualbox'!
    $ vagrant box list
    manageiq/fine            (virtualbox, 6.4.0)
    manageiq/gaprindashvili  (virtualbox, 7.3.0)
    manageiq/gaprindashvili  (virtualbox, 7.4.0)
    manageiq/hammer          (virtualbox, 8.1.0-beta2)
    manageiq/hammer          (virtualbox, 8.5.1)
    manageiq/hammer          (virtualbox, 8.6.0)
    manageiq/master          (virtualbox, 20190627)
    manageiq/master          (virtualbox, 20190629)
@NickLaMuro
Copy link
Owner Author

Works good enough for my purposes for now, so going to merge this.

@NickLaMuro NickLaMuro merged commit a944487 into master Jul 23, 2019
NickLaMuro added a commit to NickLaMuro/manageiq-db_backup-tests that referenced this pull request Mar 30, 2021
Since a patch was required to fix an issue with hammer:

ManageIQ/manageiq#18745

Certain specs do not work with the rake tasks, and causes a decent
amount of errors.

As a result, the simplest way forward was to just simply switch to using
a master appliance for the time being.  However, the downside to this is
that "master" isn't an available option to download from vagrantup.com:

https://app.vagrantup.com/manageiq

So downloading and installing an appliance from:

http://releases.manageiq.org/

is required for this to work.  A more pragmatic solution in the future
might be to allow setting a custom box, but defaulting to a box type
that available from vagrantup.com.

Steps to download/install manageiq/master:
------------------------------------------

Since the `manageiq/master` appliance isn't available as valid release
from https://app.vagrantup.com/manageiq/ , you can use the following
script to download a versioned copy of it:

NickLaMuro/miq_tools#13

And add it to vagrant by running the following:

    $ ./miq_vagrant_master/cli --version 20190629
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant