On Tuesday, October 9, 2012 12:19:20 AM UTC-5, pdurkin 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.
>
>
This is exactly what the File resource type's 'replace' parameter is for.

file { '/etc/foo.conf'':
  ensure => 'file',
  source => 'puppet:///mymodule/foo.conf',
  replace => false
}

That will install the file (as a copy from the specified source, in the 
above example) if it does not already exist, but it will not modify an 
existing file.


John

-- 
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/-/X2arwvJI_ZsJ.
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.

Reply via email to