Resource Type: sensu_user

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

Summary

Manages Sensu users

Overview

Autorequires:

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

Examples:

Create a user

sensu_user { 'test':
  ensure   => 'present',
  password => 'supersecret',
  groups   => ['users'],
}

Change a user's password

sensu_user { 'test'
  ensure   => 'present',
  password => 'newpassword',
  groups   => ['users'],
}

Properties

  • disabled (defaults to: false)

    The state of the user's account.

    Supported values:
    • true
    • false
  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent
  • groups

    Groups to which the user belongs.

  • password

    The user's password.

Parameters

  • configure (defaults to: false)

    Run sensuctl configure for this user

    Supported values:
    • true
    • false
  • configure_trusted_ca_file (defaults to: /etc/sensu/ssl/ca.crt)

    Path to trusted CA to use with 'sensuctl configure'

  • configure_url (defaults to: http://127.0.0.1:8080)

    URL to use with 'sensuctl configure'

  • name (namevar)

    The name of the user.

  • provider

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