Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Commit

Permalink
created bb_generic_logs, check_yum_updates, and puppet.repo
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ Asghar committed Jul 26, 2012
1 parent 7370a79 commit 802b9f1
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 4 deletions.
30 changes: 30 additions & 0 deletions bb_generic_logs_pull.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash

FULLFILE=/usr/local/blackboard/apps/oracle-client/network/admin/tnsnames.ora
FILE=tnsnames.ora

USER=asgharje
DATE=`date +%F`
TOMCAT_DATE=`date +%Y%m%d`
BB_DATE=`date +%Y-%m-%d`

#
# Create the directory
#
mkdir $DATE
cd $DATE

#
# Pull the files down
#
for i in "spider.its.utexas.edu" "maeve.its.utexas.edu" "nancy.its.utexas.edu" "tristran.its.utexas.edu" "rosie.its.utexas.edu"
do
echo ""
echo "Now pulling from $i"
echo ""
scp -C $USER@$i:$FULLFILE $DATE.$i.$FILE
echo ""
echo "Done with $i"
echo ""
done

10 changes: 10 additions & 0 deletions check_yum_updates.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

DATE=`date +%F`
HOSTNAME=`hostname -s`
[email protected]

yum check-update > /tmp/$DATE.check_update.txt
mail -s "Weekly $HOSTNAME check-update" $EMAIL < /tmp/$DATE.check_update.txt
rm /tmp/$DATE.check_update.txt

6 changes: 2 additions & 4 deletions lazy.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/bin/bash
for i in `cat prod_machines.txt` ; do scp linux_audit.sh $i://tmp/ ; done
for i in `cat prod_machines.txt` ; do ssh $i /tmp/linux_audit.sh ; done
./pull_linux_audit.sh
ls -ltra *.txt
for i in `cat prod_machines.txt` ; do scp puppet.repo $i://tmp/ ; done

6 changes: 6 additions & 0 deletions puppet.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[puppetlabs]
name=Puppet Labs Packages
baseurl=http://yum.puppetlabs.com/el/$releasever/products/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs

0 comments on commit 802b9f1

Please sign in to comment.