#
Master
#
Modes of Operation
BDeploy may be set up in different modes, making a few different overall usage scenarios possible:
Compared to the rather straightforward standalone scenario above, a CENTRAL
and MANAGED
server setup allows for more flexibility, while being manageable through a single Web UI:
Note
You can still manage every MANAGED
server directly through its own Web UI. Creation of new Instance Groups is restricted to the CENTRAL
Web UI though.
BDeploy's CENTRAL
mode is built in a way that attached MANAGED
servers can have an alternate URL, making it possible to manage servers which are known under different names in the local network (e.g. VPN/NAT, alternate DNS, etc.).
Note
See Central/Managed Specific Configuration for more details.
#
Initialization
To start using BDeploy you will at least need a single master. The master needs to be initialized before it can be started.
The root directory contains all the runtime data. It is adviseable to select an empty directory in the data area of your system (e.g. /var/bdeploy on Linux) that is intended exclusively for this purpose. Keep the root directory separate from the BDeploy binary installation. Make sure that there is enough space available.
A STANDALONE
master can be initialized like this:
bdeploy init --root=</path/to/root> --hostname=<hostname> --mode=STANDALONE --port=7701 --initUser=<username> --initPassword=<password>
Note
It is possible to append --logData=<path> to the init command to set an external directory that will be useable via variable expansion of P:LOG_DATA
.
See Variable Expansions for further details.
Warning
The root/data directory should be outside of the BDeploy installation. When updating BDeploy it replaces files in the installation folder, and you do not want to accidentally touch the root directory. Those are separate things.
The init
command will create the initial administrator user from the --initUser
and --initPassword
parameters. This user has full administrative privileges. You can use the bdeploy login
command to authorize all other CLI commands for your user.
Warning
Make sure to choose a secure password!
The init
command will write an access token to a file if given with --tokenFile
. The main purpose of this tokens is automation (scripting) and testing. The token is a system token which is not associated with any actual user. This token is important when initializing a root for a NODE
, as it will be required when attaching the NODE
to a STANDALONE
or MANAGED
master. On the master you can generate a token for any user from the BDeploy UI anytime later on.
The --mode
parameter of the init
command is used to determine the future purpose of the BDeploy root. The mode can be STANDALONE
, MANAGED
, CENTRAL
or NODE
(also see Node).
Note
It is not recommended (but possible) to change the mode of an initialized root retroactively, so take care to use the correct mode for the intended use.
The result of the init
command is a root directory which can be used by the start command.
Warning
Be aware that the user running the start command later on must be the owner of the root directory. Otherwise BDeploy will run into problems when accessing files. If you configure BDeploy as a service make sure to either run the service as the same user who initialized the root directory, or pass ownership of the root directory to the user running the service before starting it.
#
Launch
After the initialization - which needs to be done only once - the master can be started with the following command:
bdeploy master --root=</path/to/root>
This will start the master server which also hosts the Web UI: https://localhost:7701
Note
The server is using a self-signed certificate by default. Thus you need to instruct your browser to accept it. See Custom Certificate for instructions on how to provide a better certificate.
#
User
Only authenticated users have access to the Web UI. The initial user has been created by the init
command. Use this user to log in to the Web UI and create additional users (or provide external authentication mechanisms) from the User Accounts administration page.
#
Sessions
The Web UI uses timed sessions for authenticated users. Sessions follow these rules:
- A user must be 'active' (i.e. visiting the BDeploy Web UI in some way) within a configurable timeframe, by default 24 hours. Otherwise, the session is timed out.
- A session times out latest after a configurable session timeout, by default 7 days.
- Active sessions are stored on disc every 5 minutes. Sessions are not guaranteed to be deemed active after a server restart, but will be in most cases. A forced server shutdown will not write currently active sessions (e.g.
kill -9
). - The
bdeploy config
command can be used to modify the timeout values.