That is the intent of "ensure => present". If the file isn't there, puppet will create it with the source/content parameter. If it is there (exists), puppet will leave it alone.
http://docs.puppetlabs.com/references/latest/type.html#file — Mason Turner On Oct 9, 2012, at 1:19 AM, pdurkin <pdurki...@gmail.com> wrote: > I've been looking around but can't seem to find an answer to this. > > I would like to create a file whose initial contents come from the default in > the puppet server but is subsequently modifiable and puppet won't overwrite > any changes. > > The reason for this is that if I deploy a user account via puppet and upload > a default .bashrc/.profile, the user should be able to modify these without > having puppet change them back to the originals every time it runs. > > Thanks > > Paul > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/puppet-users/-/MNccQWibusoJ. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.