diff --git a/main.tf b/main.tf index e0df238..0835010 100644 --- a/main.tf +++ b/main.tf @@ -38,8 +38,10 @@ resource "null_resource" "alpine_prometheus_node_exporter" { # "echo '# enable service node_exporter'", "rc-update add node_exporter", - "/etc/init.d/node_exporter start", + "rc-service node_exporter start", # + "echo '# clean'", + "rm -rf node_exporter-${var.node_exporter_version}.linux-amd64.tar.gz node_exporter-${var.node_exporter_version}.linux-amd64", "echo '# module DONE'", ] }