Jira (PUP-6804) Change from symlink to regular file produces strange results
Title: Message Title Andrey Galkin commented on PUP-6804 Re: Change from symlink to regular file produces strange results links => follow, Doesn't help, BTW. Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-6804) Change from symlink to regular file produces strange results
Title: Message Title Andrey Galkin updated an issue Puppet / PUP-6804 Change from symlink to regular file produces strange results Change By: Andrey Galkin Summary: Changed Change from symlink to regular file produces strange results Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-6804) Changed from symlink to regular file produces strange results
Title: Message Title Andrey Galkin updated an issue Puppet / PUP-6804 Changed from symlink to regular file produces strange results Change By: Andrey Galkin If existing file is a symlink it fails to be changed to regular file and symlink target is very strangely processed. If file is removed first then everything is OK.{code: java puppet }root@maint:~# cat puppet_symlink_to_file.pp node default {$f = '/etc/localtime.test'$fo = "/usr/share/zoneinfo/Etc/UTC"exec {"/bin/ln -sfn $fo $f": } ->file { $f:ensure => file,mode => '0644',source => $fo,}}root@maint:~# puppet apply puppet_symlink_to_file.pp Notice: Compiled catalog for maint.example.com in environment production in 0.19 secondsNotice: /Stage[main]/Main/Node[default]/Exec[/bin/ln -sfn /usr/share/zoneinfo/Etc/UTC /etc/localtime.test]/returns: executed successfullyNotice: /Stage[main]/Main/Node[default]/File[/etc/localtime.test]/target: target changed '/usr/share/zoneinfo/Etc/UTC' to '../UTC'Notice: Applied catalog in 0.13 secondsroot@maint:~# puppet --version4.7.0root@maint:~# uname -aLinux maint.example.com 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u1 (2016-09-03) x86_64 GNU/Linuxroot@maint:~# puppet apply cat puppet_symlink_to_file.pp node default {$f = '/etc/localtime.test'$fo = "/usr/share/zoneinfo/Etc/UTC"#exec {"/bin/ln -sfn $fo $f": } ->exec {"/bin/rm -f $f": } ->file { $f:ensure => file,mode => '0644',source => $fo,}}root@maint:~# puppet apply puppet_symlink_to_file.pp Notice: Compiled catalog for maint.example.com in environment production in 0.17 secondsNotice: /Stage[main]/Main/Node[default]/Exec[/bin/rm -f /etc/localtime.test]/returns: executed successfullyNotice: /Stage[main]/Main/Node[default]/File[/etc/localtime.test]/ensure: createdNotice: Applied catalog in 0.16 seconds{code} Add Comment This message was sent by Atlassian JIRA
Jira (PUP-6804) Changed from symlink to regular file produces strange results
Title: Message Title Andrey Galkin created an issue Puppet / PUP-6804 Changed from symlink to regular file produces strange results Issue Type: Bug Affects Versions: PUP 4.7.0 Assignee: Unassigned Components: Language Created: 2016/10/08 9:08 AM Environment: Debian Jessie + Puppet 4.7.0 Priority: Normal Reporter: Andrey Galkin If existing file is a symlink it fails to be changed to regular file and symlink target is very strangely processed. If file is removed first then everything is OK. root@maint:~# cat puppet_symlink_to_file.pp