Resource Type: sensu_bonsai_asset

Defined in:
lib/puppet/type/sensu_bonsai_asset.rb
Providers:
sensuctl
sensu_api

Summary

Manages Sensu Bonsai assets

Overview

Autorequires:

  • Package[sensu-go-cli]
  • Service[sensu-backend]
  • Sensuctl_configure[puppet]
  • Sensu_api_validator[sensu]
  • Sensu_user[admin]
  • sensu_namespace - Puppet will autorequire sensu_namespace resource defined in namespace property.

Examples:

Install a bonsai asset

sensu_bonsai_asset { 'sensu/sensu-pagerduty-handler':
  ensure  => 'present',
}

Install specific version of a bonsai asset

sensu_bonsai_asset { 'sensu/sensu-pagerduty-handler':
  ensure  => 'present',
  version => '1.2.0',
}

Install latest version of a bonsai asset

sensu_bonsai_asset { 'sensu/sensu-pagerduty-handler':
  ensure  => 'present',
  version => 'latest',
}

Install a bonsai asset into dev namespace using composite names

sensu_bonsai_asset { 'sensu/sensu-pagerduty-handler in dev':
  ensure  => 'present',
}

Properties

  • ensure (defaults to: present)

    Bonsai asset state for Sensu Go asset

    Supported values:
    • present
    • absent
  • version

    Specific version to install, or latest

    Supported values:
    • latest
    • /^(v)?[0-9\.]+$/

Parameters

  • bonsai_http_proxy

    Proxy to use for Bonsai HTTP requests

  • bonsai_name

    Bonsai asset name

  • bonsai_namespace

    Bonsai asset namespace

  • bonsai_no_proxy

    Addresses to not proxy when making bonsai HTTP requests

  • name (namevar)

    Bonsai asset name

  • namespace (defaults to: default)

    The Sensu RBAC namespace that this asset belongs to.

  • provider

    The specific backend to use for this sensu_bonsai_asset resource. You will seldom need to specify this --- Puppet will usually discover the appropriate provider for your platform.

  • rename

    Name for Sensu Go asset