On 04/02/2012 05:36 PM, Aleksey Tsalolikhin wrote: > Hi. Is there a version of set_variable_values for space separated > name/value lines? > > I'm looking for something that will handle all three cases: > > line exists but has a different value > line exists but is commented out > line does not exist > > and how about this corner case, line exists more than once in the > file? (only the last instance has affects the final configuration) > > Has somebody written this already? > > I thought Diego has, for the configuring ssh, but I don't find this > body in CFEngine stdlib.
It is set_config_values https://github.com/cfengine/copbl/blob/master/cfengine_stdlib.cf line 278 -- Nick Anderson <n...@cmdln.org> _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine