Forum: CFEngine Help Subject: Re: CFEngine Help: Re: maintaining /etc/security/limits.conf with cf3 Author: milindk Link to topic: https://cfengine.com/forum/read.php?3,24612,24626#msg-24626
The way it is setup it will not replace if there is existing entry classes: "${cpattern[$(pattern)]}_parameter_found" expression => regline("$(pattern)","$(sybaseconfig.files)"); is you requirement to replace any existing one and if line does not exists insert new one ? for line I added new one to my bundle body location before(str) { before_after => "before"; select_line_matching => "$(str)"; } I wanted to make sure the lines were always added at the end _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine