Makes prometheus optional by default and opt-in using var.use_prometheus.
It passes in a similarly names use_prometheus variable to the user-data.txt template file interpolation call and uses an if condition inside the bash script to skip installing all the prometheus tools. It also moves the ufw command that enable it for prometheus inside the if block.
Makes prometheus optional by default and opt-in using
var.use_prometheus
.It passes in a similarly names
use_prometheus
variable to theuser-data.txt
template file interpolation call and uses an if condition inside the bash script to skip installing all the prometheus tools. It also moves theufw
command that enable it for prometheus inside the if block.Note: Assumes PR #6 , #7 are merged in first.
Closes #3