sensu / sensu.sensu_go / 0.9.0 / module / asset Manages Sensu assets | "added in version" 0.1.0 of sensu.sensu_go" Authors: Cameron Hurst (@wakemaster39), Aljaz Kosir (@aljazkosir), Manca Bizjak (@mancabizjak), Miha Plesko (@miha-plesko), Tadej Borovsak (@tadeboro) preview | supported by XLAB Steampunksensu.sensu_go.asset (0.9.0) — module
Install with ansible-galaxy collection install sensu.sensu_go:==0.9.0
collections: - name: sensu.sensu_go version: 0.9.0
For more information, refer to the Sensu documentation at U(https://docs.sensu.io/sensu-go/latest/reference/assets/)
- name: Create a multiple-build asset asset: name: sensu-plugins-cpu-checks builds: - url: https://assets.bonsai.sensu.io/68546e739d96fd695655b77b35b5aabfbabeb056/sensu-plugins-cpu-checks_4.0.0_centos_linux_amd64.tar.gz sha512: 518e7c17cf670393045bff4af318e1d35955bfde166e9ceec2b469109252f79043ed133241c4dc96501b6636a1ec5e008ea9ce055d1609865635d4f004d7187b filters: - entity.system.os == 'linux' - entity.system.arch == 'amd64' - entity.system.platform == 'rhel' - url: https://assets.bonsai.sensu.io/68546e739d96fd695655b77b35b5aabfbabeb056/sensu-plugins-cpu-checks_4.0.0_alpine_linux_amd64.tar.gz sha512: b2da25ecd7642e6de41fde37d674fe19dcb6ee3d680e145e32289f7cfc352e6b5f9413ee9b701d61faeaa47b399aa30b25885dbc1ca432c4061c8823774c28f3 filters: - entity.system.os == 'linux' - entity.system.arch == 'amd64' - entity.system.platform == 'alpine' annotations: io.sensu.bonsai.url: https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-cpu-checks io.sensu.bonsai.api_url: https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-cpu-checks io.sensu.bonsai.tier: Community io.sensu.bonsai.version: 4.0.0 io.sensu.bonsai.namespace: sensu-plugins io.sensu.bonsai.name: sensu-plugins-cpu-checks io.sensu.bonsai.tags: ruby-runtime-2.4.4
auth: description: - Authentication parameters. Can define each of them with ENV as well. suboptions: namespace: default: default description: - RBAC namespace to operate in. If this is not set the value of the SENSU_NAMESPACE environment variable will be checked. type: str password: default: P@ssw0rd! description: - The Sensu user's password. If this is not set the value of the SENSU_PASSWORD environment variable will be checked. type: str url: default: http://localhost:8080 description: - Location of the Sensu backend API. If this is not set the value of the SENSU_URL environment variable will be checked. type: str user: default: admin description: - The username to use for connecting to the Sensu API. If this is not set the value of the SENSU_USER environment variable will be checked. type: str type: dict name: description: - The Sensu object's name. required: true type: str state: choices: - present - absent default: present description: - Target state of the Sensu object. type: str builds: description: - A list of asset builds used to define multiple artefacts which provide the named asset. suboptions: filters: description: - A set of Sensu query expressions used to determine if the asset should be installed. type: list headers: description: - Additional headers to send when retrieving the asset, e.g. for authorization. type: dict sha512: description: - The checksum of the asset. required: true type: str url: description: - The URL location of the asset. required: true type: str type: list labels: description: - Custom metadata fields that can be accessed within Sensu, as key/value pairs. type: dict annotations: description: - Custom metadata fields with fewer restrictions, as key/value pairs. - These are preserved by Sensu but not accessible as tokens or identifiers, and are mainly intended for use with external tools. type: dict
object: description: object representing Sensu asset returned: success type: dict