Forum: Cfengine Help Subject: Re: templating and "Duplicate selection" -- SOLVED Author: bglomm Link to topic: https://cfengine.com/forum/read.php?3,19723,19788#msg-19788
sorry ... not always good to work to much ... after retesting it here the code actually does what it should. I just got the warning (red line below) that makes me wonder (like: "this subroutine has been used twice" actually that is what it is meant for, isn't it?) but as one can see in the next lines, the second file is processed too. So: sorry for bothering. Bernhard ... Q:aptitude --assume-ye ...:Initializing package states... Q:aptitude --assume-ye ...:Writing extended state information... Q:aptitude --assume-ye ...:Reading task descriptions... Q:aptitude --assume-ye ...: -> Copying from 10.0.0.99:/srv/cfengine3/masterfiles/conf_files/snmpd.conf -> Object /etc/snmp/snmpd.conf.staging had permission 600, changed it to 400 -> Object /etc/snmp/snmpd.conf had permission 600, changed it to 400 Edited file /etc/snmp/snmpd.conf -> Executing '/etc/init.d/snmpd restart' ...(timeout=-678,owner=-1,group=-1) Q: "...it.d/snmpd rest": Restarting network management services: snmpd. I: Last 1 QUOTed lines were generated by promiser "/etc/init.d/snmpd restart" -> Completed execution of /etc/init.d/snmpd restart !! Duplicate selection of value for variable "this_template" in scope get_template Rule from /var/lib/cfengine3/inputs/sdk-snmpd.cf at/before line 54 -> Copying from 10.0.0.99:/srv/cfengine3/masterfiles/conf_files/snmpd -> Object /etc/default/snmpd.staging had permission 600, changed it to 400 Edited file /etc/default/snmpd _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine