genvid-clusters

Manage multiple clusters through bastion-api

usage: genvid-clusters [-h] [--loglevel {DEBUG,INFO,WARNING,ERROR}]
                       {cluster-delete,repository-update,backend-list,terraform-init,terraform-status,commands-list,terraform-apply,global-show,terraform-get,terraform-tfvars-default,global-update,backend-update,backend-add,terraform-apply-plan,backend-remove,cluster-show,module-get,commands-log,terraform-tfvars-update,cluster-create,global-tfvars-show,terraform-output,module-list,repository-list,repository-add,terraform-tfvars-show,terraform-import-module,terraform-destroy,repository-remove,cluster-list,terraform-plan,commands-latest,repository-clean,global-tfvars-update,terraform-refresh,repository-update-all}
                       ...

Positional Arguments

command Possible choices: cluster-delete, repository-update, backend-list, terraform-init, terraform-status, commands-list, terraform-apply, global-show, terraform-get, terraform-tfvars-default, global-update, backend-update, backend-add, terraform-apply-plan, backend-remove, cluster-show, module-get, commands-log, terraform-tfvars-update, cluster-create, global-tfvars-show, terraform-output, module-list, repository-list, repository-add, terraform-tfvars-show, terraform-import-module, terraform-destroy, repository-remove, cluster-list, terraform-plan, commands-latest, repository-clean, global-tfvars-update, terraform-refresh, repository-update-all

Named Arguments

--loglevel

Possible choices: DEBUG, INFO, WARNING, ERROR

Set the script log level

Sub-commands:

cluster-delete

Delete a cluster.

genvid-clusters cluster-delete [-h] [-f] cluster_id

Positional Arguments

cluster_id The cluster id.

Named Arguments

-f, --force

Force the operation even if the cluster is in an invalid state.

Default: False

repository-update

Update a repository.

genvid-clusters repository-update [-h] [-u URL] repository

Positional Arguments

repository The name of the repository

Named Arguments

-u, --url The URL of the source repository. Only mandatory if no url were set before.

backend-list

List the backends available

genvid-clusters backend-list [-h]

terraform-init

Execute terraform init on a cluster.

genvid-clusters terraform-init [-h] [-c CLUSTERS] [-g] [-s] [-f] [--all]

Named Arguments

-c, --clusters The cluster id.
-g, --globalcontext
 

Global operation.

Default: False

-s, --silent

Do not print the logs.

Default: False

-f, --force

Force the operation even if the cluster is in an invalid state.

Default: False

--all

Do it on all clusters

Default: False

terraform-status

Retrieve the status of the cluster.

genvid-clusters terraform-status [-h] [-c CLUSTERS] [-g]

Named Arguments

-c, --clusters The cluster id.
-g, --globalcontext
 

Global operation.

Default: False

commands-list

Show the list of commands.

genvid-clusters commands-list [-h] [-c CLUSTERS] [-g]

Named Arguments

-c, --clusters The cluster id.
-g, --globalcontext
 

Global operation.

Default: False

terraform-apply

Execute terraform apply on a cluster.

genvid-clusters terraform-apply [-h] [-c CLUSTERS] [-g] [-s]

Named Arguments

-c, --clusters The cluster id.
-g, --globalcontext
 

Global operation.

Default: False

-s, --silent

Do not print the logs.

Default: False

global-show

Show the global config.

genvid-clusters global-show [-h]

terraform-get

Execute terraform get on a cluster.

genvid-clusters terraform-get [-h] [-c CLUSTERS] [-g]

Named Arguments

-c, --clusters The cluster id.
-g, --globalcontext
 

Global operation.

Default: False

terraform-tfvars-default

Show a generated terraform.tfvars file.

genvid-clusters terraform-tfvars-default [-h] [-c CLUSTERS] [-g]

Named Arguments

-c, --clusters The cluster id.
-g, --globalcontext
 

Global operation.

Default: False

global-update

Update the global config.

genvid-clusters global-update [-h] bastion_id

Positional Arguments

bastion_id The bastion id.

backend-update

Update the backend

genvid-clusters backend-update [-h] backend_id config

Positional Arguments

backend_id The backend id
config A configuration file, in JSON or HCL format.

backend-add

Add a new backend

genvid-clusters backend-add [-h] backend_id config

Positional Arguments

backend_id The backend id
config A configuration file, in JSON or HCL format.

terraform-apply-plan

Execute terraform Apply a plan on a cluster.

genvid-clusters terraform-apply-plan [-h] [-c CLUSTERS] [-g] [-s] [-p PLANS]

Named Arguments

-c, --clusters The cluster id.
-g, --globalcontext
 

Global operation.

Default: False

-s, --silent

Do not print the logs.

Default: False

-p, --plans The plan file to execute (same order as the clusters).

backend-remove

Remove a backend

genvid-clusters backend-remove [-h] backend_id

Positional Arguments

backend_id The backend id

cluster-show

Show a cluster information.

genvid-clusters cluster-show [-h] cluster_id

Positional Arguments

cluster_id The cluster id.

module-get

Return a module definition.

genvid-clusters module-get [-h] [-j] moduleId

Positional Arguments

moduleId The module id.

Named Arguments

-j, --as-json

Format the output as json

Default: False

commands-log

Show a command log.

genvid-clusters commands-log [-h] [-c CLUSTERS] [-g] command_id

Positional Arguments

command_id The command id.

Named Arguments

-c, --clusters The cluster id.
-g, --globalcontext
 

Global operation.

Default: False

terraform-tfvars-update

Update the content of the terraform.tfvars file.

genvid-clusters terraform-tfvars-update [-h] [-c CLUSTERS] [-g] tffile

Positional Arguments

tffile The source tfvars file.

Named Arguments

-c, --clusters The cluster id.
-g, --globalcontext
 

Global operation.

Default: False

cluster-create

Create a cluster.

genvid-clusters cluster-create [-h] [-b BACKEND]
                               [-v [VARIABLE [VARIABLE ...]]] [-c CATEGORY]
                               cluster_id

Positional Arguments

cluster_id The cluster id.

Named Arguments

-b, --backend

The backend id to use.

Default: “default”

-v, --variable A backend variable in the form <name>=<value>
-c, --category

The category of the cluster

Default: “cluster”

global-tfvars-show

Show the content of the global terraform.tfvars.json file.

genvid-clusters global-tfvars-show [-h]

terraform-output

Execute terraform output on a cluster.

genvid-clusters terraform-output [-h] [-c CLUSTERS] [-g]

Named Arguments

-c, --clusters The cluster id.
-g, --globalcontext
 

Global operation.

Default: False

module-list

Return the list of modules.

genvid-clusters module-list [-h] [-p PREFIX] [-j]

Named Arguments

-p, --prefix

The prefix to filter the modules.

Default: “”

-j, --as-json

Format the output as json

Default: False

repository-list

Return the list of repositories.

genvid-clusters repository-list [-h]

repository-add

Add a new repository.

genvid-clusters repository-add [-h] [-u URL] repository

Positional Arguments

repository The name of the repository

Named Arguments

-u, --url The URL of the source repository. Only mandatory if no url were set before.

terraform-tfvars-show

Show the content of the terraform.tfvars file.

genvid-clusters terraform-tfvars-show [-h] [-c CLUSTERS] [-g]

Named Arguments

-c, --clusters The cluster id.
-g, --globalcontext
 

Global operation.

Default: False

terraform-import-module

Import a module and execute terraform init on a cluster.

genvid-clusters terraform-import-module [-h] [-c CLUSTERS] [-g] [-f]
                                        module_path

Positional Arguments

module_path

The module path.

Default: “SDK-1.15.0/cluster/default”

Named Arguments

-c, --clusters The cluster id.
-g, --globalcontext
 

Global operation.

Default: False

-f, --force

Force the operation even if the cluster is in an invalid state.

Default: False

terraform-destroy

Execute terraform destroy on a cluster.

genvid-clusters terraform-destroy [-h] [-c CLUSTERS] [-g] [-s]

Named Arguments

-c, --clusters The cluster id.
-g, --globalcontext
 

Global operation.

Default: False

-s, --silent

Do not print the logs.

Default: False

repository-remove

Remove a repository.

genvid-clusters repository-remove [-h] repository

Positional Arguments

repository The name of the repository

cluster-list

Print the list of cluster.

genvid-clusters cluster-list [-h]

terraform-plan

Execute terraform plan on a cluster.

genvid-clusters terraform-plan [-h] [-c CLUSTERS] [-g] [-s] [-d]

Named Arguments

-c, --clusters The cluster id.
-g, --globalcontext
 

Global operation.

Default: False

-s, --silent

Do not print the logs.

Default: False

-d, --destroy

Execute a destroy plan.

Default: False

commands-latest

Show the current of latest log.

genvid-clusters commands-latest [-h] [-c CLUSTERS] [-g]

Named Arguments

-c, --clusters The cluster id.
-g, --globalcontext
 

Global operation.

Default: False

repository-clean

Remove all repositories.

genvid-clusters repository-clean [-h]

global-tfvars-update

Update the global tfvars file.

genvid-clusters global-tfvars-update [-h] tffile

Positional Arguments

tffile The source tfvars file.

terraform-refresh

Execute terraform refresh on a cluster.

genvid-clusters terraform-refresh [-h] [-c CLUSTERS] [-g] [-s]

Named Arguments

-c, --clusters The cluster id.
-g, --globalcontext
 

Global operation.

Default: False

-s, --silent

Do not print the logs.

Default: False

repository-update-all

Update all repositories.

genvid-clusters repository-update-all [-h]