The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

disbatch-create-users - create roles and users for Disbatch

VERSION

version 4.102

SYNOPSIS

  disbatch-create-users --config /etc/disbatch/config.json --root_user root

ARGUMENTS

--config <string>

Path to the JSON Disbatch config file.

The config file must have keys for mongohost and 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.

--root_user <string>

Username of the MongoDB root user.

--plugin_perms <string>

Path to the JSON config file for plugin permissions. Default is /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.

--additional_perms <string>

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.

Format of the file is { role_name: {collection_name: array_of_actions, ...}, ... }.

See file etc/disbatch/additional-permissions.json-example.

--create_root

Will first create the root user in the admin database. Optional.

This only works if no other users have been created.

--drop_roles

Will drop Disbatch roles and users before creating them. Optional.

SEE ALSO

Disbatch

Disbatch::Web

Disbatch::Roles

Disbatch::Plugin::Demo

disbatchd

disbatch.pl

task_runner

AUTHORS

Ashley Willis <awillis@synacor.com>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2016, 2019 by Ashley Willis.

This is free software, licensed under:

  The Apache License, Version 2.0, January 2004