Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,10 @@ resource "local_file" "telegraf" {
content = templatefile("${local.templates_dir}/telegraf.conf.tftpl", local.template_vars)
}

resource "local_file" "telegraf-repo" {
filename = "${local.conf_dir}/telegraf.repo"
resource "local_file" "influxdata-repo" {
filename = "${local.conf_dir}/influxdata.repo"
file_permission = "644"
content = templatefile("${local.templates_dir}/telegraf.repo.tftpl", local.template_vars)
content = templatefile("${local.templates_dir}/influxdata.repo.tftpl", local.template_vars)
}

resource "local_file" "timely-env" {
Expand Down Expand Up @@ -271,7 +271,7 @@ resource "null_resource" "upload_config_files" {
local_file.initialize-hadoop,
local_file.initialize-accumulo,
local_file.telegraf,
local_file.telegraf-repo,
local_file.influxdata-repo,
local_file.timely-env,
local_file.grafana-ini,
local_file.timely-yaml
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[influxdata]
name = InfluxData Repository - Stable
baseurl = https://repos.influxdata.com/stable/$basearch/main
enabled = 1
gpgcheck = 1
gpgkey = https://repos.influxdata.com/influxdata-archive.key

Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,11 @@ fi
# (doing this in cloud-init puts it over the size limit)
#
%{ if os_distro == "centos" || os_distro == "rhel" ~}
sudo cp ${software_root}/conf/telegraf.repo /etc/yum.repos.d/.
sudo cp ${software_root}/conf/influxdata.repo /etc/yum.repos.d/.
sudo yum clean all
sudo yum install -y telegraf
pdcp -g worker ${software_root}/conf/telegraf.repo /tmp/.
pdsh -S -g worker sudo mv /tmp/telegraf.repo /etc/yum.repos.d/.
pdcp -g worker ${software_root}/conf/influxdata.repo /tmp/.
pdsh -S -g worker sudo mv /tmp/influxdata.repo /etc/yum.repos.d/.
pdsh -S -g worker sudo yum clean all
pdsh -S -g worker sudo yum install -y telegraf
%{ endif ~}
Expand Down

This file was deleted.