root-expert / puppet-snap

Apache License 2.0
3 stars 6 forks source link

provider error on ubuntu 24.04 #24

Open peterwoj opened 3 months ago

peterwoj commented 3 months ago

Affected Puppet, Ruby, OS and module versions/distributions

How to reproduce (e.g Puppet code you use)

Attempt to install a module on 24.04

package { 'tree': ensure => 'installed', provider => 'snap', install_options => [ 'classic' ] }

What are you seeing

On the target machine puppet fails to run and doesn't recognize snap as being active.

The logs in foreman show

resource: /Stage[main]/Profile::Base::Packages/Package[tree] message:Provider snap is not functional on this host

What behaviour did you expect instead

That the tree snap would be installed on the target system

Output log

Any additional information you'd like to impart

Not sure if the fix is correct, in order to progress I needed to change the provider from "puppet_gem" to "gem"

` service { 'snapd': ensure => $service_ensure, enable => $service_enable, require => Package['snapd'], }

-> package { 'net_http_unix':
  ensure   => $net_http_unix_ensure,
  provider => "gem",
}

`

root-expert commented 3 weeks ago

Hello @peterwoj, this seems to be related to the version of the agent you are using. You should use the AIO packages from Puppet instead of the distro packages.

peterwoj commented 3 weeks ago

@root-expert will give it a look and comment back early next week, thanks for the reply