disbatch-create-users - create roles and users for Disbatch
version 4.102
disbatch-create-users --config /etc/disbatch/config.json --root_user root
Path to the JSON Disbatch config file.
The config file must have keys for mongohost and database.
mongohost
database
It must also have the key auth which is a hash with keys disbatchd, disbatch_web, task_runner, queuebalance, and plugin whose values are the passwords for those MongoDB disbatch users.
auth
disbatchd
disbatch_web
task_runner
queuebalance
plugin
Username of the MongoDB root user.
Path to the JSON config file for plugin permissions. Default is /etc/disbatch/plugin-permissions.json.
/etc/disbatch/plugin-permissions.json
No permissions are required, but note that Disbatch::Plugin::Demo must be able to do insert on the reports collection.
insert
reports
Path to the JSON config file to set additional permissions for included roles. No default.
If you have Disbatch::Web load additional routes via config.web_extensions, you may need to add permissions here.
config.web_extensions
Format of the file is { role_name: {collection_name: array_of_actions, ...}, ... }.
{ role_name: {collection_name: array_of_actions, ...}, ... }
See file etc/disbatch/additional-permissions.json-example.
etc/disbatch/additional-permissions.json-example
Will first create the root user in the admin database. Optional.
admin
This only works if no other users have been created.
Will drop Disbatch roles and users before creating them. Optional.
Disbatch
Disbatch::Web
Disbatch::Roles
Disbatch::Plugin::Demo
disbatch.pl
Ashley Willis <awillis@synacor.com>
This software is Copyright (c) 2016, 2019 by Ashley Willis.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
To install Disbatch, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Disbatch
CPAN shell
perl -MCPAN -e shell install Disbatch
For more information on module installation, please visit the detailed CPAN module installation guide.