Issue #14531 has been updated by Jos Boumans.

Kelsey Hightower wrote:
> Jos Boumans,
> 
> Does the last comment resolve your issue?

Well, no.

I already know how to work around the issue, as stated in the bug report. But 
this clearly is a bug.

Your choice of bug is one of the following:

1) Puppet should be creating the file, like it says in it's diagnostic output.

2) Puppet should NOT be creating a file without ensure => set, at which point 
the diagnostic output should be changed to something much more useful and 
(probably) some documentation needs to be updated.
----------------------------------------
Bug #14531: Puppet doesn't create symlinks when just using 'target => 
/path/to/file'
https://projects.puppetlabs.com/issues/14531#change-65252

Author: Jos Boumans
Status: Needs More Information
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 2.6.16
Keywords: 
Branch: 


Consider the following code:


    
    $ ls -al /mnt/tmp/{x,test}
    ls: cannot access /mnt/tmp/test: No such file or directory
    -rw-r--r-- 1 jib users 3 May  4 23:35 /mnt/tmp/x
    $ cat z.pp
    file { '/mnt/tmp/test':
    target => '/mnt/tmp/x',
    }
    $ sudo puppet apply z.pp
    notice: /Stage[main]//File[/mnt/tmp/test]/ensure: created
    notice: Finished catalog run in 3.56 seconds
    $ ls -al /mnt/tmp/{x,test}
    ls: cannot access /mnt/tmp/test: No such file or directory
    -rw-r--r-- 1 jib users 3 May  4 23:35 /mnt/tmp/x
    
Changing 'target' to 'ensure' works around the issue.


-- 
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://projects.puppetlabs.com/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