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

request: local install of gerrit.war #14

Open
ltutar opened this issue Dec 11, 2015 · 1 comment
Open

request: local install of gerrit.war #14

ltutar opened this issue Dec 11, 2015 · 1 comment
Assignees

Comments

@ltutar
Copy link

ltutar commented Dec 11, 2015

The module tries to download the war.
curl -s -O https://gerrit-releases.storage.googleapis.com/gerrit-2.11.5.war

The production servers do not have internet access.
It would be nice to be able to install the war off-line through file:///

I can now fool the puppet by putting the war in

${gerrit_home}/bin/gerrit-${gerrit_version}.war

as a pre-install step.

  # download gerrit
  exec { "download gerrit ${gerrit_version}":
    cwd     => "${gerrit_home}/bin",
    path    => [ '/usr/bin', '/usr/sbin' ],
    command => "curl -s -O ${download_location}/gerrit-${gerrit_version}.war",
    creates => "${gerrit_home}/bin/gerrit-${gerrit_version}.war",
    user    => $gerrit_user,
    group   => $gerrit_user,
  }
@tykeal tykeal self-assigned this Dec 11, 2015
@tykeal
Copy link
Owner

tykeal commented May 24, 2016

@ltutar Was just looking this over a little bit. curl will accept a file:/// URL type. It doesn't do puppet:// resources. What specifically do you see as the actual usage?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants