vainkop / terraform-aws-wireguard

Terraform Module for Wireguard VPN
GNU General Public License v3.0
25 stars 23 forks source link

Optional prometheus #8

Open MarcMeszaros opened 3 years ago

MarcMeszaros commented 3 years ago

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.

Note: Assumes PR #6 , #7 are merged in first.

Closes #3