Skip to content

Add support for secret macro type in zabbix_template #1465

Open
@osten33

Description

@osten33
SUMMARY

Support for adding macros with value that should be set as secret on template.

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

zabbix_template

ADDITIONAL INFORMATION

According to API docs it should be possible to set the macro type on template level to be either secret or vault as type. This ensures that the value is hidden in UI after being added. Currently the zabbix_template module only supports two parameters, macro and value. Value_type should be added to support the secret type as well.

fatal: [zabbix]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (community.zabbix.zabbix_template) module: macros.type. Supported parameters include: macro, value."}

https://www.zabbix.com/documentation/current/en/manual/api/reference/template/create
https://www.zabbix.com/documentation/current/en/manual/api/reference/usermacro/object

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestmoduleThe issue or pull request is related to Zabbix module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions