<div dir="ltr">Hey,<div><br></div><div>make it one-line commands, such as</div><div><br></div><div>#! /bin/sh</div><div>crm configure unmanage pgsql ...</div><div><div>crm configure delete pgsql ...</div></div><div><div>crm configure primitive pgsql ...</div>
</div><div><br></div><div>This should do it, even though, it feels like an abuse :)</div><div><br></div><div>Cheers,</div><div>Christian Parpart.</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Aug 28, 2013 at 5:58 PM, Gregg Jaskiewicz <span dir="ltr"><<a href="mailto:gryzman@gmail.com" target="_blank">gryzman@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi guys, <div><br></div><div>So I have to change one of the 'primitives' configuration, in this case pgsql - to add a new node or remove it. </div><div>I'd like to script it. </div><div><br></div>

<div>Atm someone has to go in and manually run:</div><div>crm configuration edit pgsql</div><div>change the setting, and save it. </div><div><br></div><div>How could one do this automatically in a script ? </div><div>crm configuration edit doesn't like to be fed things from outside using stdin pipe. </div>

<div><br></div><div>Thanks. <span class="HOEnZb"><font color="#888888"><br clear="all"><div><br></div>-- <br>GJ
</font></span></div></div>
<br>_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
<br></blockquote></div><br></div>