On Monday, May 9, 2016 at 4:03:38 AM UTC-5, Peter Faller wrote:
>
> Maybe all you need is:
>
> file { 'docroot':
>   path      => '/var/www/html',
>   ensure    => link,
>   force     => true,
>   target    => '/vagrant/public',
> }
>
>

Right.  If you want /var/www/html to be a symlink then *that's* the 
resource you are trying to manage.  Puppet will ordinarily refuse to 
replace a directory with a symlink via a File resource, but you can 
overcome that by turning on the 'force' parameter.  If you do so, then 
Puppet will handle recursively deleting the existing directory before 
creating the link.  Be sure that you really mean it.


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/ed015df7-4e39-4f22-aca3-418200c10a57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to