Jira (PUP-4383) host provider clobbers /etc/hosts with invalid syntax
Title: Message Title Josh Cooper commented on PUP-4383 Re: host provider clobbers /etc/hosts with invalid syntax This is similar to PUP-2643, since crontab is also based on parsedfileproviders Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-4383) host provider clobbers /etc/hosts with invalid syntax
Title: Message Title Moses Mendoza updated an issue Puppet / PUP-4383 host provider clobbers /etc/hosts with invalid syntax Change By: Moses Mendoza Labels: triaged Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-4383) host provider clobbers /etc/hosts with invalid syntax
Title: Message Title Scott Garman updated an issue Puppet / PUP-4383 host provider clobbers /etc/hosts with invalid syntax Change By: Scott Garman Team: Agent Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-4383) host provider clobbers /etc/hosts with invalid syntax
Title: Message Title Scott Garman updated an issue Puppet / PUP-4383 host provider clobbers /etc/hosts with invalid syntax Change By: Scott Garman Labels: triaged Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-4383) host provider clobbers /etc/hosts with invalid syntax
Title: Message Title Scott Garman commented on PUP-4383 Re: host provider clobbers /etc/hosts with invalid syntax In some discussions I've had with folks, the consensus is that we should actually throw an error and refuse to modify the invalid hosts file in the first place. Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-4383) host provider clobbers /etc/hosts with invalid syntax
Title: Message Title Richard Chatterton updated an issue Puppet / PUP-4383 host provider clobbers /etc/hosts with invalid syntax Change By: Richard Chatterton WhentheHostproviderfailstoparse/etc/hosts,itreplacesallexistingcontentsofthefile.Stepstoreproduce:TestedonCentOS6.6withPuppet3.6.21.Havean/etc/hostsfilewithasingle bareword word line, i. e. g. :{noformat}127.0.0.1 localhost.localdomainlocalhostlocalhost4.localdomain4localhost4::1 localhost6.localdomain6 localhost6test-host{noformat}2.ApplyamanifestthatdefinesaHostresource.{noformat}puppetapply-ehost{'test-host.example.com':ip='192.168.1.1'}{noformat}Expectedresult:/etc/hostscontainsthefollowingcontent{noformat}#HEADER:Thisfilewasautogeneratedat2015-04-0711:43:19-0500#HEADER:bypuppet.Whileitcanstillbemanagedmanually,it#HEADER:isdefinitelynotrecommended.127.0.0.1 localhost.localdomainlocalhostlocalhost4.localdomain4localhost4::1 localhost6.localdomain6 localhost6test-host192.168.1.1test-host.example.com{noformat}Actualresult:Allofthepreviouscontentsof/etc/hostareoverwritten{noformat}#HEADER:Thisfilewasautogeneratedat2015-04-0711:43:19-0500#HEADER:bypuppet.Whileitcanstillbemanagedmanually,it#HEADER:isdefinitelynotrecommended.192.168.1.1 test-host.example.com{noformat}Thefollowingisanexampleoftheoutputfromthepuppetapply:{noformat}#puppetapply-ehost{'test-host.example.com':ip='192.168.1.1'}Notice:CompiledcatalogforREDACTEDinenvironmentproductionin0.10secondsError:Couldnotprefetchhostprovider'parsed':Couldnotparselinetest-hostat/etc/hosts:5Notice:/Stage[main]/Main/Host[test-host.example.com]/ensure:createdNotice:Finishedcatalogrunin0.72seconds{noformat} Add Comment This message was sent by Atlassian JIRA (v6.3.15#6346-sha1:dbc023d)
Jira (PUP-4383) host provider clobbers /etc/hosts with invalid syntax
Title: Message Title Richard Chatterton updated an issue Puppet / PUP-4383 host provider clobbers /etc/hosts with invalid syntax Change By: Richard Chatterton Environment: OS: CentOS6.6 LinuxPuppetversion:3.6.2 Add Comment This message was sent by Atlassian JIRA (v6.3.15#6346-sha1:dbc023d) -- You received this message because you are subscribed to the Google Groups Puppet Bugs group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-4383) host provider clobbers /etc/hosts with invalid syntax
Title: Message Title Richard Chatterton created an issue Puppet / PUP-4383 host provider clobbers /etc/hosts with invalid syntax Issue Type: Bug Affects Versions: PUP 3.6.2 Assignee: Unassigned Created: 2015/04/07 9:47 AM Environment: OS: Linux Puppet version: 3.6.2 Priority: Normal Reporter: Richard Chatterton When the Host provider fails to parse /etc/hosts, it replaces all existing contents of the file. Steps to reproduce: Tested on CentOS 6.6 with Puppet 3.6.2 1. Have an /etc/hosts file with a single bareword line, e.g.: 127.0.0.1 localhost.localdomain localhost localhost4.localdomain4 localhost4 ::1