masson
Version:
Module execution engine for cluster deployments.
152 lines (149 loc) • 4.54 kB
text/coffeescript
parameters = require 'parameters'
module.exports = parameters
name: 'big'
description: 'Hadoop cluster management'
options: [
name: 'config', shortcut: 'c', type: 'array'
description: 'One or multiple configuration files'
required: true
,
name: 'debug', shortcut: 'd', type: 'boolean'
description: 'Print readable stacktrace'
]
action: 'command'
actions: [
name: 'help'
main: name: 'subcommand'
,
name: 'exec'
main: name: 'subcommand'
,
name: 'tree'
options: [
name: 'run', shortcut: 'r'
description: 'Run list holding the list of modules'
required: true
,
name: 'host', shortcut: 'h'
description: 'Limit to a list of server hostnames'
required: true
,
name: 'modules', shortcut: 'm', type: 'array'
description: 'Limit to a list of modules'
,
name: 'fast', shortcut: 'f', type: 'boolean'
description: 'Fast mode without dependency resolution'
]
,
name: 'install'
description: 'Install components and deploy configuration'
options: [
name: 'hosts', shortcut: 'h', type: 'array'
description: 'Limit to a list of server hostnames'
,
name: 'roles', shortcut: 'r'
description: 'Limit to a list of roles'
,
name: 'modules', shortcut: 'm', type: 'array'
description: 'Limit to a list of modules'
,
name: 'fast', shortcut: 'f', type: 'boolean'
description: 'Fast mode without dependency resolution'
]
,
name: 'start'
description: 'Start server components'
options: [
name: 'hosts', shortcut: 'h', type: 'array'
description: 'Limit to a list of server hostnames'
,
name: 'roles', shortcut: 'r'
description: 'Limit to a list of roles'
,
name: 'modules', shortcut: 'm', type: 'array'
description: 'Limit to a list of modules'
,
name: 'fast', shortcut: 'f', type: 'boolean'
description: 'Fast mode without dependency resolution'
]
,
name: 'reload'
description: 'Start server components'
options: [
name: 'hosts', shortcut: 'h', type: 'array'
description: 'Limit to a list of server hostnames'
,
name: 'roles', shortcut: 'r'
description: 'Limit to a list of roles'
,
name: 'modules', shortcut: 'm', type: 'array'
description: 'Limit to a list of modules'
,
name: 'fast', shortcut: 'f', type: 'boolean'
description: 'Fast mode without dependency resolution'
]
,
name: 'status'
description: 'Status of server components'
options: [
name: 'hosts', shortcut: 'h', type: 'array'
description: 'Limit to a list of server hostnames'
,
name: 'roles', shortcut: 'r'
description: 'Limit to a list of roles'
,
name: 'modules', shortcut: 'm', type: 'array'
description: 'Limit to a list of modules'
,
name: 'fast', shortcut: 'f', type: 'boolean'
description: 'Fast mode without dependency resolution'
]
,
name: 'stop',
description: 'Stop server components'
options: [
name: 'hosts', shortcut: 'h', type: 'array'
description: 'Limit to a list of server hostnames'
,
name: 'roles', shortcut: 'r'
description: 'Limit to a list of roles'
,
name: 'modules', shortcut: 'm', type: 'array'
description: 'Limit to a list of modules'
,
name: 'fast', shortcut: 'f', type: 'boolean'
description: 'Fast mode without dependency resolution'
]
,
name: 'check',
description: 'Check the server',
options: [
name: 'hosts', shortcut: 'h', type: 'array'
description: 'Limit to a list of server hostnames'
,
name: 'roles', shortcut: 'r'
description: 'Limit to a list of roles'
,
name: 'modules', shortcut: 'm', type: 'array'
description: 'Limit to a list of modules'
,
name: 'fast', shortcut: 'f', type: 'boolean'
description: 'Fast mode without dependency resolution'
]
,
name: 'clean'
description: 'Clean the server'
options: [
name: 'hosts', shortcut: 'h', type: 'array'
description: 'Limit to a list of server hostnames'
,
name: 'roles', shortcut: 'r'
description: 'Limit to a list of roles'
,
name: 'modules', shortcut: 'm', type: 'array'
description: 'Limit to a list of modules'
,
name: 'fast', shortcut: 'f', type: 'boolean'
description: 'Fast mode without dependency resolution'
]
]