Hi Don't you have an abortclass parameter in the agent control ?
Regards "Assarsson, Emil" <emil.assars...@sonyericsson.com> a écrit : >Hi, > >I got a strange message and I'm clueless: >"cf-agent aborted on defined class "dhclient_conf" defined in bundle dhcp" > >It puzzles me even more that I don't get this every time even if I run >"cf-agent -K" > >--- >#------------------------------------------------------------------------------- ># This promise will configure the dhcp client to use some flags to make the ># dhcp server add the hostname in DNS. It will also add some search domains. ># >bundle agent dhcp { > classes: > "dhclient_conf" expression => fileexists("/etc/dhcp3/dhclient.conf"); > "nm_auto_eth0" expression => > fileexists("/etc/NetworkManager/system-connections/Auto eth0"); > files: > dhclient_conf:: > "/etc/dhcp3/dhclient.conf" > perms => system("444"), > edit_line => el_dhclient_conf; > nm_auto_eth0:: > "/etc/NetworkManager/system-connections/Auto eth0" > perms => system("600"), > edit_line => nm_conf; >} >#------------------------------------------------------------------------------- >bundle edit_line el_dhclient_conf { > insert_lines: > "send host-name \"$(sys.fqhost)\";"; > "append domain-search \"corpusers.net\", \"sonyericsson.net\";"; > "send fqdn.server-update on;"; > "send fqdn.fqdn \"$(sys.fqhost)\";"; >} >#------------------------------------------------------------------------------- >bundle edit_line nm_conf { > delete_lines: > "dns-search=.*" > select_region => sect("ipv4"); > "ignore-auto-dns=.*" > select_region => sect("ipv4"); > insert_lines: > "dns-search=sonyericsson.net;" > select_region => sect("ipv4"); > "ignore-auto-dns=false" > select_region => sect("ipv4"); >} >--- > > >Best regards > >Emil Assarsson >Sony Ericsson Mobile Communications AB > >"The information in this email, and attachment(s) thereto, is strictly >confidential and may be legally privileged. It is intended solely for the >named recipient(s), and access to this e-mail, or any attachment(s) thereto, >by anyone else is unauthorized. Violations hereof may result in legal actions. >Any attachment(s) to this e-mail has been checked for viruses, but please rely >on your own virus-checker and procedures. If you contact us by e-mail, we will >store your name and address to facilitate communications in the matter >concerned. If you do not consent to us storing your name and address for above >stated purpose, please notify the sender promptly. Also, if you are not the >intended recipient please inform the sender by replying to this transmission, >and delete the e-mail, its attachment(s), and any copies of it without, >disclosing it." > > >_______________________________________________ >Help-cfengine mailing list >Help-cfengine@cfengine.org >https://cfengine.org/mailman/listinfo/help-cfengine -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine