Resource Type: sensu_secret

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

Summary

Manages Sensu Secrets

Overview

Autorequires:

Examples:

Manage a secret in the default namespace

sensu_secret { 'sensu-ansible-token in default':
  ensure           => 'present',
  id               => 'ANSIBLE_TOKEN',
  secrets_provider => 'env',
}

Properties

  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent
  • id

    The identifying key for the provider to retrieve the secret.

  • namespace (defaults to: default)

    The Sensu RBAC namespace that this secret belongs to.

  • secrets_provider

    The name of the Sensu provider with the secret.

Parameters

  • name (namevar)

    The name of the secret. The name supports composite names that can define the namespace. An example composite name to define resource named ‘test` in namespace `dev`: `test in dev`

  • provider

    The specific backend to use for this ‘sensu_secret` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.

  • resource_name

    The name of the secret.