Issue #15301 has been updated by James Turnbull. Project changed from Puppet DSL to Puppet Category deleted (Cross-Cutting)
---------------------------------------- Feature #15301: Tighter coupling between File and FileLine types https://projects.puppetlabs.com/issues/15301#change-69369 Author: Ryan Bowlby Status: Accepted Priority: Normal Assignee: Pieter van de Bruggen Category: Target version: Affected Puppet version: Keywords: Branch: Currently you either can modify a file "À la carte" using file_line, augeas, and concat or you can manage the entire file using a file resource. What would be more flexible is to allow the file resource in conjunction with those "modifiers". So one can setup a base config using a file resource that can then be further modified by other optional classes using a "modifier". This can be an attribute to the file resource. file { "/etc/sysctl.conf": ensure => present, content => template("sysctl/sysctl.conf.erb"), modifiers => true, } file_line { 'swappiness': path => '/etc/sysctl.conf', line => 'vm.swappiness 10', } The file resource checks if modifiers is true and if so retrieves a list of changes published by the modifiers (file metadata in /var/lib/puppet). *I assumed they honored one another and was surprised to find this limitation. This feature request will likely be intuitive to others as well.* -- 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.
