Public bug reported:

I've been messing around with the daily builds of ubuntu22 recently and
I've been running puppet. For the most part puppet works, but when
trying to set a symbolic link as such:

file { "/tmp/foo":
    ensure => link,
    target => "/tmp/bar",
}

I get the following error:

Error: Could not set 'link' on ensure: wrong number of arguments (given
3, expected 2) (file: /etc/puppetlabs/foobar-link.pp, line: 1)

This same syntax works on ubuntu 18 but not in 22.

Any insights on this? Is the syntax different in puppet 5.4 (ubuntu18)
vs puppet 5.5 (ubuntu22)?

** Affects: puppet (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  I've been messing around with the daily builds of ubuntu22 recently and
- I've been running puppet. For the most part puppet works, but when when
+ I've been running puppet. For the most part puppet works, but when
  trying to set a symbolic link as such:
  
  file { "/tmp/foo":
-     ensure => link,
-     target => "/tmp/bar",
+     ensure => link,
+     target => "/tmp/bar",
  }
  
  I get the following error:
  
  Error: Could not set 'link' on ensure: wrong number of arguments (given
  3, expected 2) (file: /etc/puppetlabs/foobar-link.pp, line: 1)
  
  This same syntax works on ubuntu 18 but not in 22.
  
  Any insights on this? Is the syntax different in puppet 5.4 (ubuntu18)
  vs puppet 5.5 (ubuntu22)?

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to