The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

Bug #529

parsed based types fail to preserve existing data if target is defined

Added by Kostas Georgiou about 7 years ago. Updated about 7 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Luke Kanies% Done:

0%

Category:-
Target version:0.22.2
Affected Puppet version:0.25.4 Branch:
Keywords:

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com

This issue is currently not available for export. If you are experiencing the issue described below, please file a new ticket in JIRA. Once a new ticket has been created, please add a link to it that points back to this Redmine ticket.


Description

If you use target with every(?) parsedfile based provided the existing data is lost. Here is an example.

$ cat /tmp/hosts
#This is a test
127.0.0.1 localhost

$ cat test.pp
host { "foo":
  target => "/tmp/hosts",
  ip => "127.0.0.2"
}

$ puppet test.pp
...
$ cat /tmp/hosts
127.0.0.2       foo

An strace suggests that puppet opens and reads from the default_target instead of the provided one.

History

#1 Updated by Luke Kanies about 7 years ago

  • Status changed from 2 to Closed
  • 7 set to fixed

Fixed in r2290.

#2 Updated by Luke Kanies about 7 years ago

  • Status changed from 1 to 2

Also available in: Atom PDF