"size": Option("--size", default="rwo", action="store", dest="size", help="The size mode of the volume. ex: 10gi, 10g."), "verbose": Option("--verbose", default=False, action="store_true", dest="verbose", help="Include more information to some print commands output. " "For example, add the ``next run`` column in the output of " ":cmd:`om node print schedule`."), }) OPT.update(GLOBAL_OPT) ACTIONS = { "Pool actions": { "ls": { "msg": "List the available pools.", }, "status": { "msg": "Show pools status.", "options": [ OPT.name, OPT.verbose, ], }, "create_volume": { "msg":
""" The user management command actions and options """ import commands.mgr.parser as mp from utilities.optparser import OptParser, Option from utilities.storage import Storage from core.objects.svc import ACTION_ASYNC PROG = "om usr" OPT = Storage() OPT.update(mp.OPT) OPT.update({ "key": Option("--key", default=None, action="store", dest="key", help="The secret key name."), "value_from": Option( "--from", default=None, action="store", dest="value_from", help= "Read the secret value from a file or a directory. If set to '-' or '/dev/stdin', the value is read from stdin, and the --key is mandatory. If set to a file path, the key name is the file basename. If set to a directory, one key per file is added, and the keyname is the relative path, the --key value being used as the relative path prefix." ), "password": Option("--password", default=None,
""" The configmap management command actions and options. """ import commands.mgr.parser as mp from utilities.optparser import OptParser, Option from utilities.storage import Storage from core.objects.svc import ACTION_ASYNC PROG = "om cfg" OPT = Storage() OPT.update(mp.OPT) OPT.update({ "key": Option("--key", default=None, action="store", dest="key", help="The configuration key name."), "value_from": Option( "--from", default=None, action="store", dest="value_from", help= "Read the configuration values from a file or a directory. If set to '-' or '/dev/stdin', the value is read from stdin, and the --key is mandatory. If set to a file path, the key name is the file basename. If set to a directory, one key per file is added, and the keyname is the relative path, the --key value being used as the relative path prefix." ), "path": Option("--path", default=None,
""" The service management command actions and options """ import commands.mgr.parser as mp from core.objects.svc import ACTION_ASYNC from utilities.optparser import OptParser, Option from utilities.storage import Storage PROG = "om svc" OPT = Storage() OPT.update(mp.OPT) OPT.update({ "account": Option("--account", default=False, action="store_true", dest="account", help="If set the unavailabity period is accounted in the service " "availability ratio maintained by the collector."), "attach": Option("--attach", default=False, action="store_true", dest="attach", help="Attach the modulesets specified in a compliance run."), "author": Option("--author", default=None, action="store", dest="author",
""" Secret management command actions and options """ import commands.mgr.parser as mp from utilities.optparser import OptParser, Option from utilities.storage import Storage from core.objects.svc import ACTION_ASYNC PROG = "om sec" OPT = Storage() OPT.update(mp.OPT) OPT.update({ "key": Option("--key", default=None, action="store", dest="key", help="The secret key name."), "value_from": Option( "--from", default=None, action="store", dest="value_from", help= "Read the secret value from a file or a directory. If set to '-' or '/dev/stdin', the value is read from stdin, and the --key is mandatory. If set to a file path, the key name is the file basename. If set to a directory, one key per file is added, and the keyname is the relative path, the --key value being used as the relative path prefix." ), "password": Option("--password", default=None,