Skip to content

Instantly share code, notes, and snippets.

@syossan27
Created December 19, 2019 05:25
Show Gist options
  • Save syossan27/3bd236aa4fc5a5af37b018d757b617ba to your computer and use it in GitHub Desktop.
Save syossan27/3bd236aa4fc5a5af37b018d757b617ba to your computer and use it in GitHub Desktop.
files:
"/etc/yum.repos.d/influxdb.repo"
mode: "00644"
owner: root
group: root
content: |
[influxdb]
name = InfluxDB Repository - RHEL $releasever
baseurl = https://repos.influxdata.com/rhel/7/$basearch/stable
enabled = 1
gpgcheck = 1
gpgkey = https://repos.influxdata.com/influxdb.key
container_commands:
01install:
command: "sudo yum install -y telegraf"
ignoreErrors: true
02enablereboot:
command: "sudo chkconfig telegraf on"
ignoreErrors: true
03permission:
command: "sudo usermod -aG docker telegraf"
ignoreErrors: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment