ansible/ansible-modules-extras — pull request #127 by swimlappy (2014-12-02 21:32:03+00:00)
Title: New Module: Continuent Tungsten cctrl command - request for testing and feedback

I'd like to contribute this module for automating work with the Continuent Tungsten "cctrl" command. I'm hoping some people out there would be willing to test this and give some feedback on its use.

From Continuents website, "The cctrl command provides cluster management for your installed cluster, providing a command-line shell interface to obtain information and manage your cluster and structure."

Some examples of how the module can be used

Set policy modes
- tungsten_cctrl: policy=maintenance
- tungsten_cctrl: policy=automatic

Datasource operations
- tungsten_cctrl: datasource=shun host=dbserver1
- tungsten_cctrl: datasource=recover host=dbserver1
- tungsten_cctrl: datasource=offline host=dbserver1
- tungsten_cctrl: datasource=online host=dbserver1
- tungsten_cctrl: datasource=welcome host=dbserver1
- tungsten_cctrl: datasource=fail host=dbserver1

Change master to dbserver2
- tungsten_cctrl: switch=true host=dbserver2

Change master, but let Tungsten choose which slave to place the master on
- tungsten_cctrl: switch=true

Change master to dbserver1 and specify the full path to the cctrl binary
- tungsten_cctrl: switch=true host=dbserver1 cctrl=/opt/continuent/tungsten/tungsten-manager/bin/cctrl

Thanks,
Jay