1

I'm trying to automate the administration of my servers which are running corosync/pacemaker. For that I generate a file containing the modifs that needs to be applied to the configuration. To apply this file I usualy do :

crm configure load update path_to_file

It works fine when I do it myself. But whenever there is a warning generated by the config, crm ask if I really want's to commit the changes. As far as I'm trying to automate this task I'd like to get rid of this question and directly commit the changes. Is-it possible ?

2
  • If crm does not have a force or -y flag or something , check out expect and autoexpect as that might be an option, should all else fail.
    – Petter H
    Aug 25, 2013 at 17:25
  • Indeed there is a force option : -F, and it did the tricks. Thanks a lot. Aug 25, 2013 at 21:42

1 Answer 1

0

Use the -F force flag to override the prompting from crm.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .