integ/config/puppet-modules/puppet-hash2stuff/puppet_downloader.sh
Andre Kantek 4b6da3e7aa Add puppet package hash2stuff
This change adds the package hash2stuff. This module will convert
puppet hashes into different formats commonly used for config files

This package will be used in change:
https://review.opendev.org/c/starlingx/stx-puppet/+/881496

Story: 2010591
Task: 47952

Change-Id: I7cd5b3337606422e75fd9e4ad711c7ce56b4f27d
Signed-off-by: Andre Kantek <andrefernandozanella.kantek@windriver.com>
2023-05-09 15:36:30 -03:00

12 lines
291 B
Bash
Executable File

#!/bin/sh
BRANCH="master"
repo="https://github.com/mmckinst"
module="puppet-hash2stuff"
git ls-remote ${repo}/${module} ${BRANCH}
SHA=`git ls-remote ${repo}/${module} ${BRANCH} | awk '{print $1}'`
echo ${SHA}
wget ${repo}/${module}/archive/${BRANCH}.tar.gz -O "${module}"-"${SHA}".tar.gz