Re: [Pacemaker] editing primitive via script

2013-08-29 Thread Dejan Muhamedagic
Hi, On Wed, Aug 28, 2013 at 11:17:13PM +0200, Christian Parpart wrote: > Hey, > > make it one-line commands, such as > > #! /bin/sh > crm configure unmanage pgsql ... I guess you wanted to say: crm resource unmanage ... > crm configure delete pgsql ... > crm configure primitive pgsql ... > >

Re: [Pacemaker] editing primitive via script

2013-08-28 Thread Christian Parpart
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 wrote:

[Pacemaker] editing primitive via script

2013-08-28 Thread Gregg Jaskiewicz
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