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

Move to puppet-archive in order to support archive checksum validation #84

Closed
tohuwabohu opened this issue Aug 8, 2015 · 0 comments
Closed

Comments

@tohuwabohu
Copy link

The module should verify the checksum of the downloaded JIRA archive in order to make sure it has not been manipulated. The puppet-archive module provides this functionality. IMHO, no module should download artifacts from external sources without ensuring the file's integrity.

As a workaround, the following code could be used

file { "/opt/staging/jira/atlassian-jira-${version}.tar.gz.sha256":
  content => "${checksum} *atlassian-jira-${version}.tar.gz"
}

exec { "/usr/bin/sha256sum -c atlassian-jira-${version}.tar.gz.sha256":
  cwd         => '/opt/staging/jira',
  refreshonly => true,
  require     => File["/opt/staging/jira/atlassian-jira-${version}.tar.gz.sha256"],
  subscribe   => Staging::File["atlassian-jira-${version}.tar.gz"],
}
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

No branches or pull requests

1 participant