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

uninitialized constant PuppetX::Bodeco::PUPPET #471

Open
pillarsdotnet opened this issue Apr 25, 2022 · 4 comments · May be fixed by #472
Open

uninitialized constant PuppetX::Bodeco::PUPPET #471

pillarsdotnet opened this issue Apr 25, 2022 · 4 comments · May be fixed by #472

Comments

@pillarsdotnet
Copy link
Contributor

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 6.26.0
  • Ruby: 2.5.9
  • Distribution: Puppet Enterprise 2019.8.10
  • Module version: 6.0.2

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

  archive { $archive:
    checksum_type => md5,
    checksum_url  => "${pwcflexera::src}/${flexfile}.md5",
    cleanup       => false,
    extract       => true,
    extract_path  => $target,
    group         => 'Administrators',
    require       => File[$target],
    source        => "${pwcflexera::src}/${flexfile}" ,
    user          => 'System',
  }

What are you seeing

Could not set 'present' on ensure: uninitialized constant PuppetX::Bodeco::PUPPET
Did you mean? Puppet
PuppetX (file: /etc/puppetlabs/code/environments/stage/modules/pwcflexera/manifests/windows.pp, line: 39)
Wrapped exception:
uninitialized constant PuppetX::Bodeco::PUPPET
Did you mean? Puppet
PuppetX

What behaviour did you expect instead

Successful download and extraction.

Output log

2022-04-25 20:06:42,err,"Could not set 'present' on ensure: uninitialized constant PuppetX::Bodeco::PUPPET
Did you mean?  Puppet
               PuppetX (file: /etc/puppetlabs/code/environments/stage/modules/pwcflexera/manifests/windows.pp, line: 39)
Wrapped exception:
uninitialized constant PuppetX::Bodeco::PUPPET
Did you mean?  Puppet
               PuppetX"
2022-04-25 20:06:42,err,"Could not set 'present' on ensure: uninitialized constant PuppetX::Bodeco::PUPPET
Did you mean?  Puppet
               PuppetX (file: /etc/puppetlabs/code/environments/stage/modules/pwcflexera/manifests/windows.pp, line: 39)"

Any additional information you'd like to impart

@pillarsdotnet
Copy link
Contributor Author

pillarsdotnet commented Apr 25, 2022

Removed the user and group attributes:

  archive { $archive:
    checksum_type => md5,
    checksum_url  => "${pwcflexera::src}/${flexfile}.md5",
    cleanup       => false,
    extract       => true,
    extract_path  => $target,
    require       => File[$target],
    source        => "${pwcflexera::src}/${flexfile}" ,
  }

But the error persists:

Could not set 'present' on ensure: uninitialized constant PuppetX::Bodeco::PUPPET
Did you mean? Puppet
PuppetX (file: /etc/puppetlabs/code/environments/stage/modules/pwcflexera/manifests/windows.pp, line: 39)
Wrapped exception:
uninitialized constant PuppetX::Bodeco::PUPPET
Did you mean? Puppet
PuppetX

@pillarsdotnet
Copy link
Contributor Author

Perhaps it is failing because even though the source attribute supports puppet:/// urls, the checksum_url attribute does not.

@pillarsdotnet
Copy link
Contributor Author

I'm going to try downloading the md5 checksum file as a separate step, then using a file:/// url for the checksum_url attribute.

@pillarsdotnet
Copy link
Contributor Author

Yup; that's the problem.

@pillarsdotnet pillarsdotnet linked a pull request Apr 25, 2022 that will close this 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

Successfully merging a pull request may close this issue.

1 participant