Skip to content

Commit

Permalink
Merge pull request #264 from calcium-machine/develop-catapult
Browse files Browse the repository at this point in the history
Output CPU, HDD, and RAM utilization to log hardware statistics with …
  • Loading branch information
seth-reeser committed Sep 10, 2015
2 parents 3812d9b + 67ed1ee commit 321e97f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion VERSION.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version: 1.3.1
version: 1.4.0
15 changes: 11 additions & 4 deletions provisioners/redhat/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@



echo -e "\n\n"
echo -e "\n\n\n"
echo " mdQQQb "
echo " ---- 4SSEO "
echo " \ \SSQ' "
Expand All @@ -23,14 +23,21 @@ echo " ____ .;'____ \\\\ ____ ____ "
echo " / / _\_L / / \ ______\\\\_/_/__\__ / / \ "
echo " | | |____| | ++ |_________________| | ++ | "
echo " \_\__/ \_\__/ \_\__/ \_\__/ "
echo -e "\n\n"


echo -e "==> Receiving your Catapult Instance"
echo -e "\n\n\n==> System Information"
echo -e "CPU"
cat /proc/cpuinfo | grep 'model name' | cut -d: -f2 | awk 'NR==1' | tr -d " "
echo -e "$(top -bn 1 | awk '{print $9}' | tail -n +8 | awk '{s+=$1} END {print s}')% utilization"
echo -e "\nHDD"
df -h
echo -e "\nRAM"
free -h


echo -e "\n\n\n==> Receiving your Catapult Instance"
# install git
sudo yum install -y git

# clone and pull catapult
if ([ $1 = "dev" ] || [ $1 = "test" ]); then
branch="develop"
Expand Down

0 comments on commit 321e97f

Please sign in to comment.