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:
parent
79e77b860e
commit
a233c8c043
14
Vagrantfile
vendored
14
Vagrantfile
vendored
@ -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
5
td-agent.repo
Normal 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
|
Loading…
Reference in New Issue
Block a user