Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/Stage[main]/Network/Package[ipaddress]: Provider puppet_gem is not functional on this host #332

Open
thonixx opened this issue Sep 22, 2024 · 1 comment

Comments

@thonixx
Copy link

thonixx commented Sep 22, 2024

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 8.4.0-1
  • Ruby: 1:3.2~ubuntu1
  • Distribution: Ubuntu 24.04.1 LTS
  • Module version: 2.2.0

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

In manifests/$host.pp I have configured this:

  include network

  network_config {
    'ens3':
      ensure    => present,
      family    => 'inet',
      method    => 'static',
      ipaddress => '**REDACTED**',
      netmask   => '**REDACTED**',
      options   => {
        'search' => '**REDACTED**',
      };
  }

What are you seeing

During the Puppet run I see:

Info: Using environment 'production'
[...]
Error: /Stage[main]/Network/Package[ipaddress]: Provider puppet_gem is not functional on this host
Notice: /Stage[main]/Main/Node[**REDACTED**]/Network_config[ens3]: Dependency Package[ipaddress] has failures: true
Warning: /Stage[main]/Main/Node[**REDACTED**]/Network_config[ens3]: Skipping because of failed dependencies
Info: Stage[main]: Unscheduling all events on Stage[main]
Notice: Applied catalog in 0.30 seconds

What behaviour did you expect instead

No puppet_gem error.

Any additional information you'd like to impart

I am not 100% sure if that's a problem related to the module or Puppet itself. I have also found #215 and #216.

@smortex
Copy link
Member

smortex commented Sep 22, 2024

The puppet_gem provider use the version of Ruby bundled in the AIO package. You seem to be using the package from Ubuntu (which is basically of Debian), not the AIO package from PuppetLabs.

Switching to AIO puppet should fix your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants