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

Concat() requires an array - but it has one #71

Closed
rnelson0 opened this issue Dec 19, 2014 · 3 comments
Closed

Concat() requires an array - but it has one #71

rnelson0 opened this issue Dec 19, 2014 · 3 comments

Comments

@rnelson0
Copy link
Member

I receive this error message in my production branch, which uses v1.8.0 of maestrodev/rvm and v1.1.2 of puppetlabs-concat:

puppet agent -t

...
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: concat(): Requires array to work with at /etc/puppet/environments/production/modules/rvm/manifests/system.pp:36 on node HOSTNAME

The lines in question are https://github.com/maestrodev/puppet-rvm/blob/maestrodev/manifests/system.pp#L27-L36, and I find it odd that L35 does not complain and, best I can tell, feeds its result, an array, into L36, but L36 generates the error. I really don't get the error message. And here's the profile class; hiera provides no parameter overrides to rvm:

class profile::rvm {
  include '::rvm'

  $ruby_version = 'ruby-1.9.3-p551'
  rvm_system_ruby { $ruby_version:
    ensure      => present,
    default_use => true,
  }

  $rvm_gems = [
    'rspec-puppet',
    'puppet',
    'fpm',
    'puppet-lint',
    'puppetlabs_spec_helper',
  ]
  rvm_gem { $rvm_gems:
    ensure       => latest,
    ruby_version => $ruby_version,
    require      => Rvm_system_ruby[$ruby_version],
  }
}

I do not receive this error on a new branch that has rvm v1.8.0 and concat v1.1.2. I don't know the entirety of the differences in concat v1.1.0 and v1.1.2. I'm not sure that's what causes this issue though, as I could swear (without evidence, of course, cause I didn't think I'd need to capture it at the time) that last month when I built this node everything worked fine. Clearly, it doesn't work now.

@carlossg
Copy link
Member

concat() doesn't come from puppetlabs-concat, but from puppetlabs-stdlib

You are not setting proxy_url or no_proxy ?

carlossg added a commit that referenced this issue Dec 19, 2014
@carlossg
Copy link
Member

the issue happened if you were using stdlib [4.0.0, 4.2.0)

@rnelson0
Copy link
Member Author

@carlossg Thank you for the the tip, I had 4.1.0 in the production environment.

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