To be honest, the bug initially reported here is fixed, I just tried
what is described in the Test Plan section and it works:
root@puppet-test:~# dpkg -l puppet
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-=================-============-=================================
ii puppet 5.5.22-4ubuntu0.1 all configuration management
system
root@puppet-test:~# cat test.pp
file { '/tmp/link-to-motd':
ensure => 'link',
target => '/etc/motd',
}
root@puppet-test:~# puppet apply test.pp
Notice: Compiled catalog for puppet-test.lxd in environment production in 0.01
seconds
Notice: /Stage[main]/Main/File[/tmp/link-to-motd]/ensure: created
Notice: Applied catalog in 0.01 seconds
root@puppet-test:~# ls /tmp/link-to-motd -las
0 lrwxrwxrwx 1 root root 9 May 9 20:15 /tmp/link-to-motd -> /etc/motd
The issue you are facing regarding to_sym is another thing, I am trying to
identify what is happening. I took what Serge did (comment #11) but I was not
able to reproduce the issue:
root@puppet-test:~# cat test.pp
file { '/etc/localtime':
ensure => 'link',
target => $osfamily ? {
'Debian' =>
'/usr/share/zoneinfo/posix/America/Los_Angeles',
default => '/usr/share/zoneinfo/America/Los_Angeles',
}
}
root@puppet-test:~# puppet apply test.pp
Notice: Compiled catalog for puppet-test.lxd in environment production in 0.01
seconds
Notice: /Stage[main]/Main/File[/etc/localtime]/target: target changed
'/usr/share/zoneinfo/Etc/UTC' to '/usr/share/zoneinfo/posix/America/Los_Angeles'
Notice: Applied catalog in 0.02 seconds
root@puppet-test:~# ls -las /etc/localtime
0 lrwxrwxrwx 1 root root 45 May 9 13:21 /etc/localtime ->
/usr/share/zoneinfo/posix/America/Los_Angeles
How exactly are you running your manifests? I'd need to reproduce the
problem locally to keep investigating. Ideally, the simplest manifest
needed to trigger this issue.
** Changed in: puppet (Ubuntu Kinetic)
Status: Triaged => Fix Committed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1969939
Title:
puppet 5 package incompatible with ruby 3 / ubuntu 22.04
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/puppet/+bug/1969939/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs