genvid-bastion

Manage the local bastion cluster.

The script installs the supervisor services under GENVID_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:

clean

Deprecated. An alias for uninstall --clean.

genvid-bastion clean [-h]

env

Print the environment variable used by the script.

genvid-bastion env [-h]

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

monitor

Open the monitor application in a webbrowser.

genvid-bastion monitor [-h]

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

setup

Deprecated. An alias for install --checkmodules.

genvid-bastion setup [-h]

start

Start the services.

genvid-bastion start [-h] [jobs [jobs ...]]

Positional Arguments

jobs

status

Give a status.

genvid-bastion status [-h]

stop

Stop the services.

genvid-bastion stop [-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]