genvid-services-local¶
Changed in version 1.15.0: Add support for GENVID_SERVICES_DATADIR
Installation of supervisor services as background processes.
usage: genvid-services-local [-h] [--loglevel {DEBUG,INFO,WARNING,ERROR}]
{version,env,status,reinstall,uninstall,restart,install,start,stop,add_consul_dns}
...
Positional Arguments¶
command | Possible choices: version, env, status, reinstall, uninstall, restart, install, start, stop, add_consul_dns |
Named Arguments¶
--loglevel | Possible choices: DEBUG, INFO, WARNING, ERROR Set the script log level |
Sub-commands:¶
status¶
Check the status of the service.
genvid-services-local status [-h]
[{consul,vault,nomad,} [{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]
[--vault-enabled] [--reconfigure]
[{consul,vault,nomad,} [{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 | EC2 Tag to check for servers. |
--ec2-value | EC2 Value to check for servers. |
--vault-enabled | |
Enable Vault in Nomad. Default: False | |
--reconfigure | Reset the configuration files even if present. Default: False |
uninstall¶
Uninstall the service.
genvid-services-local uninstall [-h]
[{consul,vault,nomad,} [{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,} [{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]
[--vault-enabled] [--reconfigure]
[{consul,vault,nomad,} [{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 | EC2 Tag to check for servers. |
--ec2-value | EC2 Value to check for servers. |
--vault-enabled | |
Enable Vault in Nomad. Default: False | |
--reconfigure | Reset the configuration files even if present. Default: False |
start¶
Start an installed service.
genvid-services-local start [-h]
[{consul,vault,nomad,} [{consul,vault,nomad,} ...]]
Positional Arguments¶
services | Possible choices: consul, vault, nomad, [] The service to update between consul, vault, nomad or nothing for all. |