salt.modules.marathon module

Module providing a simple management interface to a marathon cluster.

Currently this only works when run through a proxy minion.

2015.8.2 新版功能.

salt.modules.marathon.app(id)

Return the current server configuration for the specified app.

CLI Example: .. code-block:: bash

salt marathon-minion-id marathon.app my-app
salt.modules.marathon.apps()

Return a list of the currently installed app ids.

CLI Example: .. code-block:: bash

salt marathon-minion-id marathon.apps
salt.modules.marathon.has_app(id)

Return whether the given app id is currently configured.

CLI Example: .. code-block:: bash

salt marathon-minion-id marathon.has_app my-app
salt.modules.marathon.info()

Return configuration and status information about the marathon instance.

CLI Example: .. code-block:: bash

salt marathon-minion-id marathon.info
salt.modules.marathon.rm_app(id)

Remove the specified app from the server.

CLI Example: .. code-block:: bash

salt marathon-minion-id marathon.rm_app my-app
salt.modules.marathon.update_app(id, config)

Update the specified app with the given configuration.

CLI Example: .. code-block:: bash

salt marathon-minion-id marathon.update_app my-app '<config yaml>'