genvid-services-local
Changed in version 1.15.0: Add support for GENVID_SERVICES_DATADIR
Changed in version 1.20.0: Added --node-id
parameter.
Installation of supervisor services as background processes.
usage: genvid-services-local [-h] [--loglevel {DEBUG,INFO,WARNING,ERROR}] [--logformat LOGFORMAT]
{sdk-version,version,env,start,stop,restart,status,install,uninstall,reinstall,add_consul_dns} ...
Positional Arguments
- command
Possible choices: sdk-version, version, env, start, stop, restart, status, install, uninstall, reinstall, add_consul_dns
Named Arguments
- --loglevel
Possible choices: DEBUG, INFO, WARNING, ERROR
Set the script log level
- --logformat
Set the script log format
Sub-commands
sdk-version
Print current SDK versions
genvid-services-local sdk-version [-h]
version
Print current versions
genvid-services-local version [-h]
env
Print used environment variables.
genvid-services-local env [-h]
start
Start an installed service.
genvid-services-local start [-h] [{consul,vault,nomad,} ...]
Positional Arguments
- services
Possible choices: consul, vault, nomad, []
The service to update between consul, vault, nomad or nothing for all.
stop
Stop a service.
genvid-services-local stop [-h] [{consul,vault,nomad,} ...]
Positional Arguments
- services
Possible choices: consul, vault, nomad, []
The service to update between consul, vault, nomad or nothing for all.
restart
Restart a service.
genvid-services-local restart [-h] [{consul,vault,nomad,} ...]
Positional Arguments
- services
Possible choices: consul, vault, nomad, []
The service to update between consul, vault, nomad or nothing for all.
status
Check the status of the service.
genvid-services-local status [-h] [{consul,vault,nomad,} ...]
Positional Arguments
- services
Possible choices: consul, vault, nomad, []
The service to update between consul, vault, nomad or nothing for all.
install
Install the service.
genvid-services-local install [-h] [-n NAME] [-m {dev,client,server}] [-d DATACENTER] [-r REGION] [-b BIND] [-w WAN] [-c NODE_CLASS] [-s SERVERS] [--bootstrap BOOTSTRAP] [--replace-dns]
[--ec2-tag EC2_TAG] [--ec2-value EC2_VALUE] [--join-policy JOIN_POLICY] [--vault-enabled] [--node-id NODE_ID] [--reconfigure]
[{consul,vault,nomad,} ...]
Positional Arguments
- services
Possible choices: consul, vault, nomad, []
The service to update between consul, vault, nomad or nothing for all.
Named Arguments
- -n, --name
Name of the service. Default is hostname.
- -m, --mode
Possible choices: dev, client, server
Running mode (“dev”).
Default: “dev”
- -d, --datacenter
Datacenter (“dc1”).
Default: “dc1”
- -r, --region
Region for nomad (“global”).
Default: “global”
- -b, --bind
IP to bind.
- -w, --wan
WAN address (None).
- -c, --class
Class for Nomad clients.
- -s, --servers
List of servers to join by default.
- --bootstrap
Number of bootstrap servers 1.
Default: 1
- --replace-dns
Use as the default DNS (False).
Default: False
- --ec2-tag
Obsolete values used for backwards compatibility. Tag key to be used for auto-join
- --ec2-value
Obsolete values used for backwards compatibility. Tag value to be used for auto-join
- --join-policy
join policy for retry-join configuration.
- --vault-enabled
Enable Vault in Nomad.
Default: False
- --node-id
The node id to use.
- --reconfigure
Reset the configuration files even if present.
Default: False
uninstall
Uninstall the service.
genvid-services-local uninstall [-h] [{consul,vault,nomad,} ...]
Positional Arguments
- services
Possible choices: consul, vault, nomad, []
The service to update between consul, vault, nomad or nothing for all.
reinstall
Reinstall the services.
genvid-services-local reinstall [-h] [-n NAME] [-m {dev,client,server}] [-d DATACENTER] [-r REGION] [-b BIND] [-w WAN] [-c NODE_CLASS] [-s SERVERS] [--bootstrap BOOTSTRAP] [--replace-dns]
[--ec2-tag EC2_TAG] [--ec2-value EC2_VALUE] [--join-policy JOIN_POLICY] [--vault-enabled] [--node-id NODE_ID] [--reconfigure]
[{consul,vault,nomad,} ...]
Positional Arguments
- services
Possible choices: consul, vault, nomad, []
The service to update between consul, vault, nomad or nothing for all.
Named Arguments
- -n, --name
Name of the service. Default is hostname.
- -m, --mode
Possible choices: dev, client, server
Running mode (“dev”).
Default: “dev”
- -d, --datacenter
Datacenter (“dc1”).
Default: “dc1”
- -r, --region
Region for nomad (“global”).
Default: “global”
- -b, --bind
IP to bind.
- -w, --wan
WAN address (None).
- -c, --class
Class for Nomad clients.
- -s, --servers
List of servers to join by default.
- --bootstrap
Number of bootstrap servers 1.
Default: 1
- --replace-dns
Use as the default DNS (False).
Default: False
- --ec2-tag
Obsolete values used for backwards compatibility. Tag key to be used for auto-join
- --ec2-value
Obsolete values used for backwards compatibility. Tag value to be used for auto-join
- --join-policy
join policy for retry-join configuration.
- --vault-enabled
Enable Vault in Nomad.
Default: False
- --node-id
The node id to use.
- --reconfigure
Reset the configuration files even if present.
Default: False
add_consul_dns
Add consul in resolvers
genvid-services-local add_consul_dns [-h]