Skip to content

Commit

Permalink
Fix: grafana install configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
suizman authored and iknite committed Feb 19, 2019
1 parent 0dda304 commit db8ec56
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deploy/aws/modules/prometheus/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,14 @@ resource "aws_instance" "prometheus" {
user_data = <<-DATA
#!/bin/bash
while [ `lsof ${var.path}/provisioning | wc -l` -gt 0 ]; do
while [ `lsof ${var.path}/provisioning | wc -l` -gt 0 ]; do
sleep 1 # INFO: prevents Error of `text file busy`
done
sudo yum install -y https://dl.grafana.com/oss/release/grafana-5.4.2-1.x86_64.rpm
sudo rm -rf /etc/grafana/provisioning
sudo mv ${var.path}/provisioning /etc/grafana
sudo chown -R root:grafana /etc/grafana
sudo service grafana-server start
while [ `lsof ${var.path}/prometheus | wc -l` -gt 0 ]; do
Expand Down

0 comments on commit db8ec56

Please sign in to comment.