splunk

Statefully manage Splunk users.

Usage

This state is used to ensure presence of users in splunk.

ensure example test user 1:
    splunk.present:
        - name: 'Example TestUser1'
        - email: example@domain.com
saltext.splunk.states.splunk.present(email, profile='splunk', **kwargs)[source]

Ensure a user is present

ensure example test user 1:
    splunk.user_present:
        - realname: 'Example TestUser1'
        - name: 'exampleuser'
        - email: 'example@domain.com'
        - roles: ['user']

The following parameters are required:

email

This is the email of the user in splunk

saltext.splunk.states.splunk.absent(email, profile='splunk', **kwargs)[source]

Ensure a splunk user is absent

ensure example test user 1:
    splunk.absent:
        - email: 'example@domain.com'
        - name: 'exampleuser'

The following parameters are required:

email

This is the email of the user in splunk

name

This is the splunk username used to identify the user.