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

Puppet evaluation error in "rundeck::config::resource_source" #362

Closed
shamil opened this issue Nov 12, 2017 · 3 comments
Closed

Puppet evaluation error in "rundeck::config::resource_source" #362

shamil opened this issue Nov 12, 2017 · 3 comments
Labels
bug Something isn't working

Comments

@shamil
Copy link

shamil commented Nov 12, 2017

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 5.3.2
  • Ruby: ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
  • Distribution: Ubuntu 16.04 LTS
  • Module version: 5.0

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

do not specify directory option when defining rundeck::config::resource_source resource.

rundeck::config::resource_source { 'test':
    project_name => 'test-project',
    source_type  => 'file'
}

What are you seeing

Puppet evaluation error:

2017-11-11 11:32:31 +0000 Puppet (err): Evaluation Error: Error while evaluating a Resource Statement, Rundeck::Config::Resource_source[test]: parameter 'directory' expects a Stdlib::Absolutepath = Variant[Stdlib::Windowspath = Pattern[/^(([a-zA-Z]:[\\\/])|([\\\/][\\\/][^\\\/]+[\\\/][^\\\/]+)|([\\\/][\\\/]\?[\\\/][^\\\/]+))/], Stdlib::Unixpath = Pattern[/^\/([^\/\0]+\/*)+$/]] value, got String

Any additional information you'd like to impart

  1. Default directory value is / which is not absolute path according to Stdlib::Absolutepath.
  2. If I set to directory something different than /, like /tmp/dummy/unused/dir it works.
  3. When source_type is file it should not check for the directory option. IMO
@juniorsysadmin juniorsysadmin added bug Something isn't working needs-feedback Further information is requested labels Nov 12, 2017
@shamil shamil changed the title Puppet evaluation error in rundeck::config::resource_source Puppet evaluation error in "rundeck::config::resource_source" Nov 12, 2017
@juniorsysadmin juniorsysadmin removed the needs-feedback Further information is requested label Nov 12, 2017
@juniorsysadmin
Copy link
Member

@shamil This is sadly a bug in stdlib: puppetlabs/puppetlabs-stdlib#811

@juniorsysadmin
Copy link
Member

@shamil You will need to use stdlib 4.21.0

@shamil
Copy link
Author

shamil commented Nov 12, 2017

@juniorsysadmin yep that seems to be it. closing

@shamil shamil closed this as completed Nov 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants