To configure Users in the Rundeck service:
Use the following structure to configure users through pillar parameters:
parameters:
rundeck:
server:
users:
user1:
name: USER_NAME_1
password: USER_PWD_1
roles:
- user
- admin
- architect
- deploy
- build
user2:
name: USER_NAME_2
password: USER_PWD_2
roles:
- user
- deploy
- build
...
Note
Currently, the default access control list (ACL) properly
supports only admin
users. Therefore, the user2
user
in the configuration structure above will not be able
to run jobs and view projects.
Create API tokens for non-interactive communications with Rundeck API. To configrue tokens, specify the required parameters in metadata. For example:
parameters:
rundeck:
server:
tokens:
admin: token0
User2: token4
Apply the rundeck.server state:
salt-call state.sls rundeck.server
Restart the Rundeck service:
docker service update --force rundeck_rundeck