Skip to content

Instantly share code, notes, and snippets.

@igable
Created March 4, 2014 00:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igable/9337569 to your computer and use it in GitHub Desktop.
Save igable/9337569 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
#
# This script installs shoal onto SL6 and configures
# it to connect to the production shoal instance used
# by the ATLAS Cloud group.
#
#
curl http://shoal.heprc.uvic.ca/repo/shoal.repo -o /etc/yum.repos.d/shoal.repo
echo -e "\nAttempting install of EPEL repository\n"
echo "The following could fail without a problem on the SLC varient and if you"
echo "have EPEL installed already"
yum install -y yum-conf-epel
# install the agent
yum install -y shoal-agent
echo "Setting the config to point to shoal.heprc.uvic.ca"
sed -i 's/localhost/shoal.heprc.uvic.ca/g' /etc/shoal/shoal_agent.conf
echo -e "\n\nTo start shoal agent execute:"
echo -e " service shoal-agent start\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment