Getting an error when trying to apply manifest locally on windows

614 views
Skip to first unread message

Sam

unread,
Mar 25, 2014, 5:02:12 AM3/25/14
to puppet...@googlegroups.com
Hello,
        I installed the elasticsearch-logstash module on my windows 7 laptop and when I try to apply the manifest locally to install logstash, I am getting the following error.

C:\ProgramData\PuppetLabs\puppet\etc\modules\logstash\manifests>puppet apply init.pp
Error: Could not find parent resource type 'logstash::params' of type hostclass in production at C:/ProgramData/PuppetLabs/puppet/e
tc/modules/logstash/manifests/init.pp:87 on node maa-lpe35022kd.fnfis.com
Error: Could not find parent resource type 'logstash::params' of type hostclass in production at C:/ProgramData/PuppetLabs/puppet/e
tc/modules/logstash/manifests/init.pp:87 on node maa-lpe35022kd.fnfis.com

Once I installed the module, I edited the init.pp and uncommented the following line

#   class { 'logstash': }

and ran "puppet apply init.pp"

I tried running with debug and verbose switches well and got the following error

Info: Loading facts in C:/ProgramData/PuppetLabs/puppet/etc/modules/stdlib/lib/facter/facter_dot_d.rb
Info: Loading facts in C:/ProgramData/PuppetLabs/puppet/etc/modules/stdlib/lib/facter/pe_version.rb
Info: Loading facts in C:/ProgramData/PuppetLabs/puppet/etc/modules/stdlib/lib/facter/puppet_vardir.rb
Info: Loading facts in C:/ProgramData/PuppetLabs/puppet/etc/modules/stdlib/lib/facter/root_home.rb
Error: Could not parse for environment production: Syntax error at end of file at line 1 on node maa-lpe35022kd.fnfis.com
Error: Could not parse for environment production: Syntax error at end of file at line 1 on node maa-lpe35022kd.fnfis.com

Puppet version is 3.4.3.

Any suggestions for resolving this issue?

Thanks
Sam

Rob Reynolds

unread,
Mar 25, 2014, 5:42:33 PM3/25/14
to puppet...@googlegroups.com
Can you run puppet apply init.pp --debug --verbose --trace ?


--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/6bd4540e-9f85-4328-836f-afaf0ae58756%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Rob Reynolds
Developer, Puppet Labs

Join us at PuppetConf 2014September 23-24 in San Francisco - http://bit.ly/pupconf14
Register now and save $350!

Sam

unread,
Mar 26, 2014, 1:36:32 AM3/26/14
to puppet...@googlegroups.com
Please see the output of the command puppet apply init.pp --debug --verbose --trace below.

C:/Info: Loading facts in C:/ProgramData/PuppetLabs/puppet/etc/modules/stdlib/lib/facter/facter_dot_d.rb
C:/Info: Loading facts in C:/ProgramData/PuppetLabs/puppet/etc/modules/stdlib/lib/facter/pe_version.rb
C:/Info: Loading facts in C:/ProgramData/PuppetLabs/puppet/etc/modules/stdlib/lib/facter/puppet_vardir.rb
C:/Info: Loading facts in C:/ProgramData/PuppetLabs/puppet/etc/modules/stdlib/lib/facter/root_home.rb
Error: Could not parse for environment production: Syntax error at 'logstash' at C:/ProgramData/PuppetLabs/puppet/etc/modules/logstash/manifests/init.pp:87 on node maa-lpe35022kd.fnfis.com
C:/puppet/puppet/lib/puppet/parser/parser_support.rb:148:in `on_error'
C:/puppet/puppet/lib/puppet/parser/lexer.rb:500:in `scan'
(eval):3:in `_racc_yyparse_c'
(eval):3:in `yyparse'
C:/puppet/puppet/lib/puppet/parser/parser_support.rb:159:in `parse'
C:/puppet/puppet/lib/puppet/node/environment.rb:447:in `perform_initial_import'
C:/puppet/puppet/lib/puppet/node/environment.rb:192:in `known_resource_types'
C:/puppet/puppet/lib/puppet/resource/type_collection_helper.rb:5:in `known_resource_types'
C:/puppet/puppet/lib/puppet/parser/compiler.rb:478:in `initvars'
C:/puppet/puppet/lib/puppet/parser/compiler.rb:215:in `initialize'
C:/puppet/puppet/lib/puppet/parser/compiler.rb:23:in `new'
C:/puppet/puppet/lib/puppet/parser/compiler.rb:23:in `compile'
C:/puppet/puppet/lib/puppet/indirector/catalog/compiler.rb:116:in `block (2 levels) in compile'
C:/puppet/puppet/lib/puppet/util/profiler/none.rb:6:in `profile'
C:/puppet/puppet/lib/puppet/util/profiler.rb:31:in `profile'
C:/puppet/puppet/lib/puppet/indirector/catalog/compiler.rb:114:in `block in compile'
C:/puppet/puppet/lib/puppet/util.rb:161:in `block in benchmark'
C:/puppet/sys/ruby/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
C:/puppet/puppet/lib/puppet/util.rb:160:in `benchmark'
C:/puppet/puppet/lib/puppet/indirector/catalog/compiler.rb:113:in `compile'
C:/puppet/puppet/lib/puppet/indirector/catalog/compiler.rb:46:in `find'
C:/puppet/puppet/lib/puppet/indirector/indirection.rb:201:in `find'
C:/puppet/puppet/lib/puppet/application/apply.rb:204:in `main'
C:/puppet/puppet/lib/puppet/application/apply.rb:146:in `run_command'
C:/puppet/puppet/lib/puppet/application.rb:364:in `block (2 levels) in run'
C:/puppet/puppet/lib/puppet/application.rb:470:in `plugin_hook'
C:/puppet/puppet/lib/puppet/application.rb:364:in `block in run'
C:/puppet/puppet/lib/puppet/util.rb:478:in `exit_on_fail'
C:/puppet/puppet/lib/puppet/application.rb:364:in `run'
C:/puppet/puppet/lib/puppet/util/command_line.rb:137:in `run'
C:/puppet/puppet/lib/puppet/util/command_line.rb:91:in `execute'
C:/puppet/puppet/bin/puppet:4:in `<main>'
Error: Could not parse for environment production: Syntax error at 'logstash' at C:/ProgramData/PuppetLabs/puppet/etc/modules/logst

ash/manifests/init.pp:87 on node maa-lpe35022kd.fnfis.com
C:/puppet/puppet/lib/puppet/parser/parser_support.rb:148:in `on_error'
C:/puppet/puppet/lib/puppet/parser/lexer.rb:500:in `scan'
(eval):3:in `_racc_yyparse_c'
(eval):3:in `yyparse'
C:/puppet/puppet/lib/puppet/parser/parser_support.rb:159:in `parse'
C:/puppet/puppet/lib/puppet/node/environment.rb:447:in `perform_initial_import'
C:/puppet/puppet/lib/puppet/node/environment.rb:192:in `known_resource_types'
C:/puppet/puppet/lib/puppet/resource/type_collection_helper.rb:5:in `known_resource_types'
C:/puppet/puppet/lib/puppet/parser/compiler.rb:478:in `initvars'
C:/puppet/puppet/lib/puppet/parser/compiler.rb:215:in `initialize'
C:/puppet/puppet/lib/puppet/parser/compiler.rb:23:in `new'
C:/puppet/puppet/lib/puppet/parser/compiler.rb:23:in `compile'
C:/puppet/puppet/lib/puppet/indirector/catalog/compiler.rb:116:in `block (2 levels) in compile'
C:/puppet/puppet/lib/puppet/util/profiler/none.rb:6:in `profile'
C:/puppet/puppet/lib/puppet/util/profiler.rb:31:in `profile'
C:/puppet/puppet/lib/puppet/indirector/catalog/compiler.rb:114:in `block in compile'
C:/puppet/puppet/lib/puppet/util.rb:161:in `block in benchmark'
C:/puppet/sys/ruby/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
C:/puppet/puppet/lib/puppet/util.rb:160:in `benchmark'
C:/puppet/puppet/lib/puppet/indirector/catalog/compiler.rb:113:in `compile'
C:/puppet/puppet/lib/puppet/indirector/catalog/compiler.rb:46:in `find'
C:/puppet/puppet/lib/puppet/indirector/indirection.rb:201:in `find'
C:/puppet/puppet/lib/puppet/application/apply.rb:204:in `main'
C:/puppet/puppet/lib/puppet/application/apply.rb:146:in `run_command'
C:/puppet/puppet/lib/puppet/application.rb:364:in `block (2 levels) in run'
C:/puppet/puppet/lib/puppet/application.rb:470:in `plugin_hook'
C:/puppet/puppet/lib/puppet/application.rb:364:in `block in run'
C:/puppet/puppet/lib/puppet/util.rb:478:in `exit_on_fail'
C:/puppet/puppet/lib/puppet/application.rb:364:in `run'
C:/puppet/puppet/lib/puppet/util/command_line.rb:137:in `run'
C:/puppet/puppet/lib/puppet/util/command_line.rb:91:in `execute'
C:/puppet/puppet/bin/puppet:4:in `<main>'

Thanks
Sam

Rob Reynolds

unread,
Mar 26, 2014, 3:07:28 PM3/26/14
to puppet...@googlegroups.com
Let's back up. Are you sure this module is supported on Windows?


--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Sam

unread,
Mar 27, 2014, 2:20:29 AM3/27/14
to puppet...@googlegroups.com
I searched online for logstash module and ran the "puppet module install elasticsearch-logstash" command and since it installed the module without any issue, I thought that it should have been supported.I don't remember seeing the supported OS information. your question led me to do more research on this issue and you are probably right that the module I got is not supported on windows.

Thanks
Sam
Reply all
Reply to author
Forward
0 new messages