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

Erro deploying Splunk both Server and Forwarder #76

Closed
alfredodeluca opened this issue Dec 8, 2016 · 4 comments
Closed

Erro deploying Splunk both Server and Forwarder #76

alfredodeluca opened this issue Dec 8, 2016 · 4 comments

Comments

@alfredodeluca
Copy link

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 3.8.6
  • Ruby: ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux]
  • Distribution: CentOS release 6.7 (Final)
  • Module version: 5.0.2

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

What are you seeing

Error: Could not autoload puppet/type/splunk_config: /var/lib/puppet/lib/puppet/type/splunk_config.rb:7: syntax error, unexpected ':', expecting ')'
newparam(:name, namevar: true) do
^
/var/lib/puppet/lib/puppet/type/splunk_config.rb:128: syntax error, unexpected ':', expecting ')'
name: instance.name,
^
/var/lib/puppet/lib/puppet/type/splunk_config.rb:129: syntax error, unexpected ':', expecting '='
section: instance[:section],
^
/var/lib/puppet/lib/puppet/type/splunk_config.rb:130: syntax error, unexpected ':', expecting '='
setting: instance[:setting],
^
/var/lib/puppet/lib/puppet/type/splunk_config.rb:131: syntax error, unexpected kENSURE, expecting '='
ensure: :absent
^
/var/lib/puppet/lib/puppet/type/splunk_config.rb:132: syntax error, unexpected ')', expecting kEND
Error: Could not retrieve catalog from remote server: Could not intern from text/pson: Could not autoload puppet/type/splunk_config: /var/lib/puppet/lib/puppet/type/splunk_config.rb:7: syntax error, unexpected ':', expecting ')'
newparam(:name, namevar: true) do
^
/var/lib/puppet/lib/puppet/type/splunk_config.rb:128: syntax error, unexpected ':', expecting ')'
name: instance.name,
^
/var/lib/puppet/lib/puppet/type/splunk_config.rb:129: syntax error, unexpected ':', expecting '='
section: instance[:section],
^
/var/lib/puppet/lib/puppet/type/splunk_config.rb:130: syntax error, unexpected ':', expecting '='
setting: instance[:setting],
^
/var/lib/puppet/lib/puppet/type/splunk_config.rb:131: syntax error, unexpected kENSURE, expecting '='
ensure: :absent
^
/var/lib/puppet/lib/puppet/type/splunk_config.rb:132: syntax error, unexpected ')', expecting kEND
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

What behaviour did you expect instead

To be installed smoothly

Output log

Any additional information you'd like to impart

I have installed the same module on both centos 6 and 7 but with different ruby version (2.1) and it worked fine.

@petems
Copy link
Member

petems commented Dec 8, 2016

This is an issue with CentOS 6 shipping with Ruby 1.8.7:

voxpupuli/plumbing#36

@alfredodeluca
Copy link
Author

Thanks Peter. So can I upgrade ruby on the puppet agent without upgrading puppet itself?

@bastelfreak
Copy link
Member

Puppet3.8 works with ruby 2.1 and older. You can upgrade ruby without upgrading puppet, but this is probably also painful on centos. Puppet3 is end of life by the end of this month, I recommend to upgrade your puppet version. Puppet4 ships with his own ruby version.

@TraGicCode
Copy link
Contributor

Closing this since we don't support puppet 3 on this module based on the metadata.json

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

4 participants