See the 'recurse' and 'purge' parameters of the file type.
http://docs.puppetlabs.com/references/latest/type.html#file
file{'/root/mydir':
ensure => directory,
recurse => true,
purge => true,
}
file{['/root/mydir/a','/root/mydir/b','/root/mydir/c
Hi,
I need to manage some files in a directory. Lets say, /root/mydir can
contain only file a,b & c and rest others should be discarded. How can I
maintain it with Puppet code?
Thanks,
amogh
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To