Re: [Puppet Users] Re: Getting an error when trying to apply manifest locally on windows

2014-03-26 Thread Sam
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

On Thursday, March 27, 2014 12:37:28 AM UTC+5:30, Rob Reynolds wrote:
>
> Let's back up. Are you sure this module is supported on Windows?
>
>
> On Wed, Mar 26, 2014 at 12:36 AM, Sam >wrote:
>
>> 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 `'
>> 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:

Re: [Puppet Users] Re: Getting an error when trying to apply manifest locally on windows

2014-03-26 Thread Rob Reynolds
Let's back up. Are you sure this module is supported on Windows?


On Wed, Mar 26, 2014 at 12:36 AM, Sam  wrote:

> 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 `'
> 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/