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

Incorrect puppet/stdlib dependency declaration #46

Closed
jgreen210 opened this issue May 8, 2017 · 0 comments
Closed

Incorrect puppet/stdlib dependency declaration #46

jgreen210 opened this issue May 8, 2017 · 0 comments
Assignees

Comments

@jgreen210
Copy link
Contributor

jgreen210 commented May 8, 2017

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 4.4.2
  • Ruby: 2.3.1
  • Distribution: ubuntu
  • Module version: 3.0.1

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

      ::autofs::mount { "share":
        mount => "/share",
        mapcontents => ["files -fstype=nfs4,ro,hard,intr,nosuid,exec hostname:/share/files"],
        options => "--timeout=600",
        order => 50
      }

What are you seeing

Error: Evaluation Error: Error while evaluating a Resource Statement, Autofs::Mount[share]:
  parameter 'map_dir' expects a Resource value, got String
  parameter 'master' expects a Resource value, got String
  parameter 'mount' expects a Resource value, got String

What behaviour did you expect instead

No errors.

Output log

Any additional information you'd like to impart

It looks like this is caused by puppet/stdlib module's version. Was using puppet/stdlib version 4.9.0. The problem went away when I upgraded it to version 4.16.0. If don't want to change the module to avoid this, looks like the dependency's version_requirement in

"version_requirement": ">= 4.6.0 < 5.0.0"
(which is >= 4.6.0 < 5.0.0 in release 3.0.1) needs to be updated to something with a lower bound in (4.9.0, 4.16.0].

@jgreen210 jgreen210 changed the title parameter 'mount' expects a Resource value, got String Incorrect puppet/stdlib dependency declaration May 8, 2017
@alexjfisher alexjfisher self-assigned this May 8, 2017
alexjfisher added a commit to alexjfisher/puppet-autofs that referenced this issue May 8, 2017
alexjfisher added a commit to alexjfisher/puppet-autofs that referenced this issue May 11, 2017
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