Bug #15371
Puppet sets owner on target of symlink, not on symlink
| Status: | Needs More Information | Start date: | 07/05/2012 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 0% | ||
| Category: | - | |||
| Target version: | - | |||
| Affected Puppet version: | Branch: | |||
| Keywords: | ||||
Description
If I create a symlink using puppet and specify an owner/group, puppet will set the owner on the target of the symlink, not on the symlink.
History
#1
Updated by Ashley Penney 11 months ago
root@arya:~/tests/puppet# mkdir /tmp/test
root@arya:~/tests/puppet# chown apenney:apenney /tmp/test
root@arya:~/tests/puppet# cat test.pp
file { '/tmp/test2':
ensure => symlink,
target => '/tmp/test',
owner => 'root',
group => 'root',
}
root@arya:~/tests/puppet# puppet apply test.pp
/Stage[main]//File[/tmp/test2]/ensure: created
Finished catalog run in 0.05 seconds
drwxr-xr-x 2 apenney apenney 4096 Jul 26 13:55 /tmp/test
lrwxrwxrwx 1 root root 9 Jul 26 13:55 /tmp/test2 -> /tmp/test
I tested this on 3.x and 2.7.18 and couldn’t reproduce. Can you give any more information that could help us track down, maybe and example from your manifests?
#2
Updated by eric sorenson 10 months ago
- Status changed from Unreviewed to Needs More Information
- Assignee set to Bill Tong
Bill could you please provide reproducibility info, as Ashley asked?