Issue #1825 has been updated by luke.

Category set to file
Status changed from Unreviewed to Accepted
Priority changed from Normal to Low

This is another one of those cases where I wouldn't have thought anyone would 
ever do this, but I can see why you would, I guess.

I agree it's a bug, but obviously low priority.  You can easily work around it 
by adding 'links => manage' to those files you're creating as links.
----------------------------------------
Bug #1825: Cannot create symlink with file type when links => follow is set
http://projects.reductivelabs.com/issues/show/1825

Author: jbq
Status: Accepted
Priority: Low
Assigned to: 
Category: file
Target version: 
Complexity: Unknown
Affected version: 0.24.6
Keywords: 


I have trouble creating symlinks with the following recipe:

<pre>
# Default behaviour for file type:
# Do not copy symlinks as-is, copy the target
File {
  links => follow
}

file { "/usr/share/tonio/app/pre":
    ensure => "/var/www/tonio.com/pre"
}

notice: Ignoring cache
info: Caching catalog at /var/lib/puppet/state/localconfig.yaml
notice: Starting catalog run
notice: 
//Node[nc_webserver]/webserver/web_server/File[/usr/share/tonio/app/pre]: 
Recursively backing up to filebucket
notice: 
//Node[nc_webserver]/webserver/web_server/File[/usr/share/tonio/app/pre]: Not 
removing directory; use 'force' to override
notice: 
//Node[nc_webserver]/webserver/web_server/File[/usr/share/tonio/app/pre]: 
Recursively backing up to filebucket
notice: 
//Node[nc_webserver]/webserver/web_server/File[/usr/share/tonio/app/pre]: Not 
removing directory; use 'force' to override
err: 
//Node[nc_webserver]/webserver/web_server/File[/usr/share/tonio/app/pre]/ensure:
 change from directory to link failed: Could not remove existing file
</pre>

I guess Puppet does not like when I combine "links => follow" with creating a 
symlink with ensure.  Follow should be ignored in this case.


----------------------------------------
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to