Forum: CFEngine Help Subject: help with set_variable_values bundle Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,25058,25058#msg-25058
The goal is to set parameters in sysctl.conf for Linux hosts. body common control { bundlesequence => { "main", }; inputs => { "cfengine_stdlib.cf", }; } bundle agent main { vars: "sysctl" int => "0"; "sysctl" int => "0"; "sysctl" int =>"0"; methods: "any" usebundle => test( "main.sysctl" ); } bundle agent test (sysctl){ files: "/tmp/sysctl.conf" create => "true", edit_line => set_variable_values("test.sysctl"); } My expected results are that the three parameters will be set in sysctl.conf. What actually happens is that the the promiser file but no edits are changed. The agent produces not output from -I mode other than creating the file the first time. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine