Resource Type: sensu_cluster_role

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

Summary

Manages Sensu cluster roles

Overview

Autorequires:

  • Package[sensu-go-cli]
  • Service[sensu-backend]
  • Sensuctl_configure[puppet]
  • Sensu_api_validator[sensu]
  • Sensu_user[admin]

Examples:

Add a cluster role

sensu_cluster_role { 'test':
  ensure => 'present',
  rules  => [{'verbs' => ['get','list'], 'resources' => ['checks'], 'resource_names' => ['']}],
}

Properties

  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent
  • rules

    The rulesets that a role applies.

Parameters

  • name (namevar)

    The name of the role.

  • provider

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