This repository has been archived by the owner on Jul 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
created bb_generic_logs, check_yum_updates, and puppet.repo
- Loading branch information
JJ Asghar
committed
Jul 26, 2012
1 parent
7370a79
commit 802b9f1
Showing
4 changed files
with
48 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |