You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When realizing the nexus class a version and revision parameter must be passed. Those values are used to construct the download URL and determine the name of the directory the application was extracted to. This means that the Nexus module does not work OOB and requires configuration and heading to the Nexus website on the first try to figure out the version and revision. Additionally, that information is found on the download archive page and not the main page.
The only caveat to latest and version when not specifying the revision is that it will require you to re-download the tar.gz to assess the version and check for updates, but I would say that's a reasonable drawback and if that is not desired a person could always specify version and revision.
We can prevent the resource from flapping so long as we create a file to satisfy the wget::fetch resource's destination value. If we fetch 'http://download.sonatype.com/nexus/oss/nexus-latest-bundle.tar.gz' then we'll download nexus-2.8.0-05-bundle.tar.gz. We could symlink nexus-latest-bundle.tar.gz to nexus-2.8.0-05-bundle.tar.gz then. We should also probably default version to 'present' instead of 'latest'. Maybe 'present' creates the symlink while 'latest' doesn't and flaps on every run.
When realizing the nexus class a version and revision parameter must be passed. Those values are used to construct the download URL and determine the name of the directory the application was extracted to. This means that the Nexus module does not work OOB and requires configuration and heading to the Nexus website on the first try to figure out the version and revision. Additionally, that information is found on the download archive page and not the main page.
I'd like to instead default version and revision to 'latest'. When version is set to latest it will download from the following URL:
http://download.sonatype.com/nexus/oss/nexus-latest-bundle.tar.gz
If version is set to a version and revision is still latest it will download from the following URL:
http://download.sonatype.com/nexus/oss/nexus-${version}-bundle.tar.gz
If both version and revision are set it will download from the following URL:
http://download.sonatype.com/nexus/oss/nexus-${version}-${revision}-bundle.tar.gz
An inline function will then determine the version that was downloaded and set $full_version in nexus::package appropriately.
Thoughts @Saheba and @sstarcher?
The text was updated successfully, but these errors were encountered: