Issue #3375 has been updated by James Turnbull. Category set to newfeature Status changed from Unreviewed to Needs design decision Assigned to set to Luke Kanies
---------------------------------------- Feature #3375: parsedfile only considers order when writing new records. http://projects.puppetlabs.com/issues/3375 Author: Dan Bode Status: Needs design decision Priority: Normal Assigned to: Luke Kanies Category: newfeature Target version: Affected version: 0.25.4 Keywords: Branch: I noticed the following behavior when I was trying to implement sudoers with parsedfile. Order of entries in sudoers matters and need to be managed. Parsedfile does not fully support the ability to specify the order of lines. More specifically, it only seems to control order of lines that are created. I will use cron for my examples: Consider the following code: <pre> resources{'cron': purge => true, } cron{'dude': user => 'root', command => 'y', require => Cron['dude2'], } cron{'dude3': user => 'root', command => 'y', } cron{'dude2': user => 'root', command => 'y', require => Cron['dude3'], } </pre> This creates well ordered entries when run for the first time. <pre> # Puppet Name: dude3 * * * * * y # Puppet Name: dude2 * * * * * y # Puppet Name: dude * * * * * y </pre> Now, if I delete one of the lines: <pre> # Puppet Name: dude3 * * * * * y # Puppet Name: dude * * * * * y </pre> and re-run the puppet code. <pre> # Puppet Name: dude3 * * * * * y # Puppet Name: dude * * * * * y # Puppet Name: dude2 * * * * * y </pre> records that are created are always added after existing records regardless of the specified ordering. Also, existing records will not be reordered, even if the properties of those records change. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
