1
0
mirror of https://github.com/krislamo/graylog_demo synced 2024-12-16 06:50:35 +00:00

Install and enable td-agent daemon

This commit is contained in:
Kris Lamoureux 2020-03-04 10:51:28 -05:00
parent 79e77b860e
commit a233c8c043
Signed by: kris
GPG Key ID: A30022791E1719A4
2 changed files with 16 additions and 3 deletions

14
Vagrantfile vendored
View File

@ -19,10 +19,11 @@ Vagrant.configure("2") do |config|
sed -i "s/SELINUX=enforcing/SELINUX=permissive/g" /etc/selinux/config
# Import GPG keys
curl -s https://download.docker.com/linux/centos/gpg -o docker-key
rpm --import docker-key \
rpm --import \
/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 \
http://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
https://download.docker.com/linux/centos/gpg \
http://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7 \
https://packages.treasuredata.com/GPG-KEY-td-agent
# Install Docker Community Edition
yum-config-manager --add-repo \
@ -32,6 +33,13 @@ Vagrant.configure("2") do |config|
systemctl -q enable docker
usermod -aG docker vagrant
# Install td-agent
cp --update /vagrant/td-agent.repo /etc/yum.repos.d/
yum check-update
yum install -y td-agent
systemctl start td-agent
systemctl -q enable td-agent
# Convenience
yum install -y vim

5
td-agent.repo Normal file
View File

@ -0,0 +1,5 @@
[treasuredata]
name=TreasureData
baseurl=http://packages.treasuredata.com/3/redhat/$releasever/$basearch
gpgcheck=1
gpgkey=https://packages.treasuredata.com/GPG-KEY-td-agent