ansible-community / ansible-vault

:key: Ansible role for Hashicorp Vault
BSD 2-Clause "Simplified" License
364 stars 194 forks source link

feat: add vault_license_reporting var to opt out of automated license utilization reporting #332

Closed in0rdr closed 5 months ago

in0rdr commented 1 year ago

This adds a variable vault_license_reporting to allow enterprise customers to opt out of the automated license utilization reporting.

The default for the variable is false, which means that no config changes are made and the license utilization is reported to HashiCorp automatically.

If the user sets the value to true, the license reporting is disabled in the main configuration file with the reporting stanza:

reporting {
    license {
        enabled = false
   }
}

Setting the value to true on Vault releases which do not yet support the reporting feature results in a warning in the Vault server log.

in0rdr commented 1 year ago

I just noticed that we could probably achieve the same configuration by using the vault_custom_configuration value. However, adding the feature flag for this opt out is more explicit.