Hey,

make it one-line commands, such as

#! /bin/sh
crm configure unmanage pgsql ...
crm configure delete pgsql ...
crm configure primitive pgsql ...

This should do it, even though, it feels like an abuse :)

Cheers,
Christian Parpart.



On Wed, Aug 28, 2013 at 5:58 PM, Gregg Jaskiewicz <gryz...@gmail.com> wrote:

> Hi guys,
>
> So I have to change one of the 'primitives' configuration, in this case
> pgsql - to add a new node or remove it.
> I'd like to script it.
>
> Atm someone has to go in and manually run:
> crm configuration edit pgsql
> change the setting, and save it.
>
> How could one do this automatically in a script ?
> crm configuration edit doesn't like to be fed things from outside using
> stdin pipe.
>
> Thanks.
>
> --
> GJ
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
>
>
_______________________________________________
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org

Reply via email to