Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 ?

share|improve this question
    
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 '13 at 17:25
    
Indeed there is a force option : -F, and it did the tricks. Thanks a lot. –  karlito139 Aug 25 '13 at 21:42

1 Answer 1

up vote 0 down vote accepted

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.