Forum: Cfengine Help Subject: Re: Why is insert_lines not convergant? Author: msvob...@linkedin.com Link to topic: https://cfengine.com/forum/read.php?3,21682,21683#msg-21683
I should also point out, that I empty this file before every execution. "/etc/sudo.d/sudoers-MACHINE_GROUP" handle => "regenerate_etc_sudo_sudoers_MACHINE_GROUP", edit_defaults => empty, create => "true", edit_line => add_sudoers_entry("# this should be the only entry in the file at this point."), perms => mog("0440","root","root"); So, on every execution of cf-agent, this file is emptied, and then rebuilt. # /var/cfengine/bin/cf-agent -I -K -b manage_etc_sudoers >> Using command line specified bundlesequence -> Edited file /etc/sudo.d/sudoers-MACHINE_GROUP -> Edited file /etc/sudo.d/sudoers-MACHINE_GROUP -> Edited file /etc/sudo.d/sudoers-MACHINE_GROUP # /var/cfengine/bin/cf-agent -I -K -b manage_etc_sudoers >> Using command line specified bundlesequence -> Edited file /etc/sudo.d/sudoers-MACHINE_GROUP -> Edited file /etc/sudo.d/sudoers-MACHINE_GROUP -> Edited file /etc/sudo.d/sudoers-MACHINE_GROUP # /var/cfengine/bin/cf-agent -I -K -b manage_etc_sudoers >> Using command line specified bundlesequence -> Edited file /etc/sudo.d/sudoers-MACHINE_GROUP -> Edited file /etc/sudo.d/sudoers-MACHINE_GROUP -> Edited file /etc/sudo.d/sudoers-MACHINE_GROUP # /var/cfengine/bin/cf-agent -I -K -b manage_etc_sudoers >> Using command line specified bundlesequence -> Edited file /etc/sudo.d/sudoers-MACHINE_GROUP -> Edited file /etc/sudo.d/sudoers-MACHINE_GROUP -> Edited file /etc/sudo.d/sudoers-MACHINE_GROUP # /var/cfengine/bin/cf-agent -I -K -b manage_etc_sudoers >> Using command line specified bundlesequence -> Edited file /etc/sudo.d/sudoers-MACHINE_GROUP -> Edited file /etc/sudo.d/sudoers-MACHINE_GROUP -> Edited file /etc/sudo.d/sudoers-MACHINE_GROUP # /var/cfengine/bin/cf-agent -I -K -b manage_etc_sudoers >> Using command line specified bundlesequence -> Edited file /etc/sudo.d/sudoers-MACHINE_GROUP -> Edited file /etc/sudo.d/sudoers-MACHINE_GROUP -> Edited file /etc/sudo.d/sudoers-MACHINE_GROUP # cat /etc/sudo.d/sudoers-MACHINE_GROUP # this should be the only entry in the file at this point. Host_Alias APP_SERVER = tools02.corp Host_Alias TOOLS_MACHINES = tools02.corp _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine