move config files to new yadm dir

This commit is contained in:
Simonas Narbutas
2019-11-21 10:23:04 +01:00
parent 8c78170a3a
commit 07551e044a
35 changed files with 439 additions and 7 deletions

View File

@@ -0,0 +1,30 @@
OS_TYPE=$(uname -s)
if [ "$OS_TYPE" = "Darwin" ]; then
PWDID=6731738634759616518
BID=snarbutas@BOLCOM.NET
function ssh() {
if ! kswitch -p "$BID"; then
lpass show --password "$PWDID" | kinit --password-file=STDIN "$BID"
elif klist -l | grep "*"|grep Expired; then
lpass show --password "$PWDID" | kinit --password-file=STDIN "$BID"
fi
eval TERM=screen `/usr/bin/which ssh` $*
}
fi
decrypt () {
ssh -qtt shd-puppet-server-001.bolcom.net "sudo /opt/puppetlabs/bin/puppetserver ruby /var/lib/puppetserver/jruby-gems/gems/hiera-eyaml-2.1.0/bin/eyaml decrypt -s "${1}" 2>/dev/null"
}
checkModuleVersion () {
if [ ! -z $1 ]
then
for branch in dev tst acc xpr pro adm shd sbx use master
do
echo "== $branch =="
git checkout -q $branch
git pull -q
grep -A2 "'$1'" Puppetfile
done
else
echo "!! no module provided"
fi
}