genvid-bastion¶
Manage the local bastion cluster.
The script installs the supervisor services underGENVID_SERVICES_DATADIR
(defaults to ~/.genvid) and sets up a bastion-api service on top of them, using the installation directory.
usage: genvid-bastion [-h] [--loglevel {DEBUG,INFO,WARNING,ERROR}]
{clean,env,install,load-bastion-config,log,monitor,open,reinstall,restart,setup,start,status,stop,uninstall,update-global-tfvars}
...
Positional Arguments¶
command | Possible choices: clean, env, install, load-bastion-config, log, monitor, open, reinstall, restart, setup, start, status, stop, uninstall, update-global-tfvars |
Named Arguments¶
--loglevel | Possible choices: DEBUG, INFO, WARNING, ERROR Set the script log level |
Sub-commands:¶
install¶
Install and set up the services.
genvid-bastion install [-h] [-m] [-l] [-u]
Named Arguments¶
-m, --checkmodules | |
Install the modules and update them Default: False | |
-l, --loadconfig | |
Load the default bastion configuration Default: False | |
-u, --update-global-tfvars | |
Update the global terraform variable values. Default: False |
load-bastion-config¶
Load default bastion config. This includes the jobs and logs
genvid-bastion load-bastion-config [-h]
log¶
Return the specific log for a task.
genvid-bastion log [-h] [-t] [-n LINES] [-f]
{bastion-api,cluster-api,consul,hashi-ui,nomad,vault}
Positional Arguments¶
task | Possible choices: bastion-api, cluster-api, consul, hashi-ui, nomad, vault |
Named Arguments¶
-t, --tail | Only show the last line. Default: False |
-n, --lines | The number of lines to tail (10). Default: 10 |
-f, --follow | Wait for additional content at the end of file. Default: False |
open¶
Open a link in a webbrowser or list the link available.
genvid-bastion open [-h] [link]
Positional Arguments¶
link | Name of the link |
reinstall¶
Stop all services and reinstall them.
genvid-bastion reinstall [-h] [-c] [-f] [-d] [-m] [-l] [-u]
Named Arguments¶
-c, --clean | Clean the installation. Default: False |
-f, --force | Force deinstallation. Default: False |
-d, --destroy | Destroy existing clusters. Default: False |
-m, --checkmodules | |
Install the modules and update them Default: False | |
-l, --loadconfig | |
Load the default bastion configuration Default: False | |
-u, --update-global-tfvars | |
Update the global terraform variable values. Default: False |
restart¶
Restart the services.
genvid-bastion restart [-h] [jobs [jobs ...]]
Positional Arguments¶
jobs |
uninstall¶
Stop and uninstall the services.
genvid-bastion uninstall [-h] [-c] [-f] [-d]
Named Arguments¶
-c, --clean | Clean the installation. Default: False |
-f, --force | Force deinstallation. Default: False |
-d, --destroy | Destroy existing clusters. Default: False |
update-global-tfvars¶
Update the global variables with your current settings.
This update the Global TFVars with your current external IP and the current toolbox.
genvid-bastion update-global-tfvars [-h]