From e41959d6adafc4313cb33c89140842dc0e63286e Mon Sep 17 00:00:00 2001 From: Geoff Gatward Date: Mon, 12 Dec 2016 19:36:24 +1100 Subject: [PATCH] Initial add push_puppetforge --- push_puppetforge.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 push_puppetforge.sh diff --git a/push_puppetforge.sh b/push_puppetforge.sh new file mode 100755 index 0000000..ddd3249 --- /dev/null +++ b/push_puppetforge.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +# Placeholder script until python version written + +# requires satellite root ssh pubkey pushed to forge@puppet-forge-server + + +PFSERVER=$1 + +if [ $# -ne 1 ]; then + echo "Please specify the puppet-forge server hostname" + exit 1 +fi + +scp /var/sat-content/puppetforge/*.gz forge@$PFSERVER:/opt/puppetforge/modules +#ssh forge@$PFSERVER chown -R forge:forge /opt/puppetforge/modules +#ssh forge@$PFSERVER restorecon -R /opt/puppetforge/modules +