W3cubDocs

/SaltStack

salt.states.splunk

Splunk User State Module

New in version 2016.3.0..

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

ensure example test user 1:
    splunk.present:
        - name: 'Example TestUser1'
        - email: [email protected]

salt.states.splunk.absent(email, profile='splunk', **kwargs)

Ensure a splunk user is absent

ensure example test user 1:
    splunk.absent:
        - email: '[email protected]'
        - 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.

salt.states.splunk.present(email, profile='splunk', **kwargs)

Ensure a user is present

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

The following parameters are required:

email
This is the email of the user in splunk

© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/states/all/salt.states.splunk.html