puppetlabs/puppetlabs-stdlib — pull request #69 by jeffmccune (2012-05-11 05:05:39+00:00)
Title: Make file_line default to ensure => present

The examples in the file_line resource documentation state the following
resource should work:

file_line { 'sudo_rule':
path => '/etc/sudoers',
line => '%sudo ALL=(ALL) ALL',
}

Without this patch the example does not work because ensure is not set
to present.

This patch fixes the problem by setting the default value of ensure to
present.