Commit eff6c730 authored by Sergey Shiktarev's avatar Sergey Shiktarev
Browse files

Merge branch 'master' of gitlab.wvservices.com:pub/node-config-generator

parents 60cf8e2a b080daf5
......@@ -6,8 +6,8 @@ Usage:
-w Waves chain (yes/no)
-a Count of keys to generate
-p Wallet password
--create-configmap (yes) generate congigmap with config and wallet inside
--existing-genesis (yes/no) use genesis from previous generation if genesis_backup.conf exists.
--create-configmap [yes|no] (default: yes), generates configmap with config and wallet inside
--existing-genesis [yes|no] (default: no), use genesis from previous generation if genesis_backup.conf exists.
Example:
./launcher.py -c A -w no -a 6 -p <wallet password> --create-configmap yes
./launcher.py -c A -w no -a 3 -p <wallet password> --create-configmap yes
......@@ -52,8 +52,8 @@ if __name__=="__main__":
parser.add_option("-w", "--waves-crypto", type="choice", action="store", dest="waves_crypto", choices=["yes","no"], default="yes", help="use waves crypto(yes - waves, no - gost)")
parser.add_option("-a", "--amount", type="int", dest="amount", default=3, help="amount of keys")
parser.add_option("-p", "--password", type="string", dest="password", default=randomString(), help="wallet password(default: autogenerated)")
parser.add_option("--create-configmap", type="string", dest="kuber_config", default="no", help="Generate kubernetes configmap for nodes (yes/no)")
parser.add_option("--existing-genesis", type="string", dest="use_existing_genesis", default="yes", help="Use existing genesis from genesis_backup.conf if exist?")
parser.add_option("--create-configmap", type="string", dest="kuber_config", default="yes", help="Generate kubernetes configmap for nodes (yes/no)")
parser.add_option("--existing-genesis", type="string", dest="use_existing_genesis", default="no", help="Use existing genesis from genesis_backup.conf if exist?")
options, args = parser.parse_args()
if os.path.exists('/usr/bin/docker'):
docker = '/usr/bin/docker'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment