Resource Type: sensu_cluster_role_binding

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

Summary

Manages Sensu cluster role bindings

Overview

Autorequires:

  • Package[sensu-go-cli]
  • Service[sensu-backend]
  • Sensuctl_configure[puppet]
  • Sensu_api_validator[sensu]
  • Sensu_user[admin]
  • sensu_cluster_role - Puppet will autorequire sensu_cluster_role resource defined in role_ref property.
  • sensu_user - Puppet will autorequire sensu_user resources based on users and groups defined for the subjects property.

Examples:

Add a cluster role binding

sensu_cluster_role_binding { 'test':
  ensure   => 'present',
  role_ref => {'type' => 'ClusterRole', 'name' => 'test-role'},
  subjects => [
    { 'type' => 'User', 'name' => 'test-user' }
  ],
}

Add a cluster role binding for a Role

sensu_cluster_role_binding { 'test':
  ensure   => 'present',
  role_ref => {'type' => 'Role', 'name' => 'test-role'},
  subjects => [
    { 'type' => 'User', 'name' => 'test-user' }
  ],
}

Properties

  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent
  • role_ref

    References a role in the current namespace or a cluster role.

  • subjects

    The users or groups being assigned.

Parameters

  • name (namevar)

    The name of the role binding.

  • provider

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