On Thu, Apr 29, 2010 at 11:26:33PM +0200, Rasto Levrinc wrote:
> 
> On Thu, April 29, 2010 9:00 pm, Vadym Chepkov wrote:
> >
> 
> > On Apr 29, 2010, at 1:00 PM, Lars Ellenberg wrote:
> >
> >> crm configure show your_ping_resource_id | sed -e
> >> 's/host_list="\([^"]*\)"/host_list="10.10.10.1"/ |
> >> crm configure load update -
> >
> > :)
> >
> >
> > lovely
> >
> > /etc/{passwd,group,shadow,gshadow} also can be changed with sed.
> > But majority use usermod/gpasswd and such instead, ingrates :)
> >
> 
> What about something like that:
> 
> crm_resource -r your_ping_resource_id -p host_list -v 10.10.10.1
> 
> No xml no sed, but I agree that crm shell should have some "set" command,
> if it doesn't have it.

Oh it has it, just fine.

Actually the sed | reload was more a joke.

The OP already provided the how:

crm resource param your_ping_resource_id \
        set hostlist "'10.10.10.1 10.10.10.2'"

(btw, you have to quote the value parameter twice
if it contains whitespace; that is likely a crm shell bug,
possibly already fixed; I did not check)

The actual question is: how to do that conveniently with
e.g. timeout values (or checklevels) of operations.

And there the "load update -" trick comes in handy.
Or do you know a cleaner way there, too?

-- 
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com

DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to