Skip to content

Commit

Permalink
Initial add push_puppetforge
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoff Gatward committed Dec 12, 2016
1 parent aaf5ffc commit e41959d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions push_puppetforge.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e41959d

Please sign in to comment.