The problem is that puppet is not yet compatible with Ruby >= 3.0 (what
Ubuntu 22.04 uses). I have the same problem, and this upstream patch
fixes it:

https://github.com/puppetlabs/puppet/commit/6af09225b3b962547a2564a9d34ccd6832e60558?diff=unified

(The patch touches multiple files, but the file in question for this
problem is lib/puppet/file_system/file_impl.rb). That said, it might
probably be a good idea to apply the entire pull request
(https://github.com/puppetlabs/puppet/pull/8179), not just this patch.

Note this discussion in Debian, where they will wait for a Ruby 3.x
compatible version for Bookworm: https://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=1009643 (and which got me on the right track,
although the solution is wrong).

PD: I've isolated the patch for the symlink issue and attatched it to
this message

PPD: Full upstream patch as a unified diff:
https://github.com/puppetlabs/puppet/commit/6af09225b3b962547a2564a9d34ccd6832e60558.patch

PPPD: Any resolution for jammy should also be backported to focal, as
the lack of this/these patches generate a prodigious amount of ruby
warnings when running puppet agent --test ...

** Bug watch added: Debian Bug tracker #1009643
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1009643

** Patch added: "Cropped version of upstream commit 
6af09225b3b962547a2564a9d34ccd6832e60558 to fix symlink creation"
   
https://bugs.launchpad.net/ubuntu/+source/puppet/+bug/1968203/+attachment/5583141/+files/fix-symlink-creation-with-ruby3.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1968203

Title:
  Setting a symbolic link via puppet doesn't work on Ubuntu22

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/puppet/+bug/1968203/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to