sensu.sensu_go.sensu_go_user (0.3.0) — module

Manages Sensu users

| "added in version" 0.1.0 of sensu.sensu_go"

Authors: Paul Arthur (@flowerysong)

preview | supported by community

Install collection

Install with ansible-galaxy collection install sensu.sensu_go:==0.3.0


Add to requirements.yml

  collections:
    - name: sensu.sensu_go
      version: 0.3.0

Description

For more information, refer to the Sensu documentation: U(https://docs.sensu.io/sensu-go/latest/reference/users/)

Inputs

    
url:
    default: http://localhost:8080
    description:
    - Location of the Sensu backend API. If this is not set the value of the SENSU_BACKEND_URL
      environment variable will be checked.
    type: str

name:
    description:
    - User name.
    required: true
    type: str

user:
    default: admin
    description:
    - The username to use for connecting to the Sensu API. If this is not set the value
      of the SENSU_USER environment variable will be checked.
    type: str

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Desired state of the user.
    - Users cannot actually be deleted, only deactivated.
    type: str

groups:
    default: []
    description:
    - Groups to add the user to.
    - If C(purge_groups) is false, this will be in addition to any groups the user is
      already in.
    type: list

password:
    default: P@ssw0rd!
    description:
    - The Sensu user's password. If this is not set the value of the SENSU_PASSWORD environment
      variable will be checked.
    type: str

namespace:
    default: default
    description:
    - RBAC namespace to operate in.
    type: str

purge_groups:
    default: true
    description:
    - Determines whether this module will remove the user from any groups that are not
      explicitly listed.
    type: bool

user_password:
    description:
    - Password for the user.
    type: str