[Pacemaker] Changing name/location of resource script
Lars Ellenberg
lars.ellenberg at linbit.com
Tue Jun 12 14:07:03 EDT 2012
On Tue, Jun 12, 2012 at 08:52:27AM -0700, Walter Feddern wrote:
> I have a 4 node cluster running about 120 tomcat resources. Currently they are using the stock tomcat resource script ( ocf:heartbeat:tomcat )
>
> As I may need to make some adjustments to the script for our environment, I would like to move it out of the heartbeat directory. I have created a directory 'custom', and can edit the resource manually using:
>
> crm configure edit tomcat_rsc1
>
> then making the change using 'vi'
>
> As I have to make the change to 120 resources, I would like find a way
> to automate it a bit more, but have not been able to find an easy way
> to make the change on the command line.
crm configure edit, then :%s///
... but wait ...
crm configure help filter
careful, that one is a bit tricky to get right.
>
> Any suggestions?
>
> Thanks,
> Walter.
--
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com
More information about the Pacemaker
mailing list