Changes between Version 37 and Version 38 of SystemAdministration/Default_VM_setup


Ignore:
Timestamp:
08/01/17 13:41:01 (7 years ago)
Author:
Willem Elbers
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SystemAdministration/Default_VM_setup

    v37 v38  
    9393}}}
    9494
     95## Td-agent installation
     96
     97{{{
     98echo "=============================="
     99echo " td-agent Installation Script "
     100echo "=============================="
     101echo "This script requires superuser access to install rpm packages."
     102echo "You will be prompted for your password by sudo."
     103
     104# clear any previous sudo permission
     105sudo -k
     106
     107# run inside sudo
     108sudo sh <<SCRIPT
     109
     110  # add GPG key
     111  rpm --import https://packages.treasuredata.com/GPG-KEY-td-agent
     112
     113  # add treasure data repository to yum
     114  cat >/etc/yum.repos.d/td.repo <<'EOF';
     115[treasuredata]
     116name=TreasureData
     117baseurl=http://packages.treasuredata.com/2/redhat/\$releasever/\$basearch
     118gpgcheck=1
     119gpgkey=https://packages.treasuredata.com/GPG-KEY-td-agent
     120EOF
     121
     122  # update your sources
     123  yum check-update
     124
     125  # install the toolbelt
     126  yes | yum install -y td-agent
     127
     128SCRIPT
     129
     130# message
     131echo ""
     132echo "Intallation completed. Happy Logging!"
     133echo ""
     134echo "NOTE: In case you need any of these:"
     135echo "  1) security tested binary with a clear life cycle management"
     136echo "  2) advanced monitoring and management"
     137echo "  3) support SLA"
     138echo "Please check Fluentd Enterprise (https://fluentd.treasuredata.com/)."
     139}}}
    95140
    96141## Td-agent Configuration
     142
     143Reference: https://docs.fluentd.org/v0.12/articles/install-by-rpm
    97144
    98145{{{