Re: [Puppet Users] err: compile erro

2011-06-03 Thread Felix Frank
On 05/24/2011 12:07 PM, Denmat wrote:
 content = template(/usr/11.pdf),
 
 Try:
 source = /usr/11.pdf
 

That should actually be
content = file(/usr/11.pdf)

As has been pointed out, don't do this with large files, it's not
efficient at all.

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] err: compile erro

2011-05-24 Thread Sumith Sudhakaran
Hi,

I am trying to transfer more than 3mb file form puppet server to client, I
am error like below

err: compile error
(erb):1189: Invalid char `\027' in expression

Please help.
-- 
*  Regards***

* Sumith** *

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] err: compile erro

2011-05-24 Thread Sumith Sudhakaran
Hi,

Thanks for the reply

When I am trying to transfer/update a big file ( more than 3mb ) from server
to agent,  its copying/updaing only 275kp . Please let me know if any file
limit settings in puppet configuration.

On Tue, May 24, 2011 at 1:05 PM, Denmat tu2bg...@gmail.com wrote:

 Hi,

 It is complaining that you have an illegal character in your ERB file.

 We will need to see more of your manifest to help any further.

 Have a look at these links and see if they don't help you first.

 http://docs.puppetlabs.com/guides/templating.html#syntax-checking

 http://www.devco.net/pubwiki/Puppet/GettingStarted/5

 This is a great site for helping to debug code too:

 http://www.devco.net/archives/2009/08/19/tips_and_tricks_for_puppet_debugging.php

 Cheers,
 Den


 On 24/05/2011, at 17:01, Sumith Sudhakaran sumit...@gmail.com wrote:


 Hi,

 I am trying to transfer more than 3mb file form puppet server to client, I
 am error like below

 err: compile error
 (erb):1189: Invalid char `\027' in expression

 Please help.
 --
 *  Regards***

 * Sumith** *

  --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To post to this group, send email to puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/puppet-users?hl=en.

  --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To post to this group, send email to puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/puppet-users?hl=en.




-- 
*  Regards***

* Sumith** *

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] err: compile erro

2011-05-24 Thread Denmat
Hi,

It is complaining that you have an illegal character in your ERB file.

We will need to see more of your manifest to help any further.

Have a look at these links and see if they don't help you first.

http://docs.puppetlabs.com/guides/templating.html#syntax-checking

http://www.devco.net/pubwiki/Puppet/GettingStarted/5

This is a great site for helping to debug code too:
http://www.devco.net/archives/2009/08/19/tips_and_tricks_for_puppet_debugging.php

Cheers,
Den

On 24/05/2011, at 17:01, Sumith Sudhakaran sumit...@gmail.com wrote:

 
 Hi,
 
 I am trying to transfer more than 3mb file form puppet server to client, I am 
 error like below
 
 err: compile error
 (erb):1189: Invalid char `\027' in expression
 
 Please help.
 -- 
   Regards
 
  Sumith 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Puppet Users group.
 To post to this group, send email to puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to 
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/puppet-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] err: compile erro

2011-05-24 Thread Denmat
No, there is no file limit that I'm aware of. It uses https to copy the file 
and on the native webrick server maybe you're hitting some inherent timeout or 
other. 

There are some old pre .25 discussions on it. 
http://groups.google.com/group/puppet-users/browse_thread/thread/7e91404c1673b2b1

Basic conclusion seems to be to use apache if you're going to transfer large 
files.

I uses apache/passenger combination and don't have file transfer issues, but I 
can't recall if any of the files are larger than 3mb.

Cheers,
Den

On 24/05/2011, at 17:50, Sumith Sudhakaran sumit...@gmail.com wrote:

 Hi,
 
 Thanks for the reply
 
 When I am trying to transfer/update a big file ( more than 3mb ) from server 
 to agent,  its copying/updaing only 275kp . Please let me know if any file 
 limit settings in puppet configuration.  
 
 On Tue, May 24, 2011 at 1:05 PM, Denmat tu2bg...@gmail.com wrote:
 Hi,
 
 It is complaining that you have an illegal character in your ERB file.
 
 We will need to see more of your manifest to help any further.
 
 Have a look at these links and see if they don't help you first.
 
 http://docs.puppetlabs.com/guides/templating.html#syntax-checking
 
 http://www.devco.net/pubwiki/Puppet/GettingStarted/5
 
 This is a great site for helping to debug code too:
 http://www.devco.net/archives/2009/08/19/tips_and_tricks_for_puppet_debugging.php
 
 Cheers,
 Den
 
 
 On 24/05/2011, at 17:01, Sumith Sudhakaran sumit...@gmail.com wrote:
 
 
 Hi,
 
 I am trying to transfer more than 3mb file form puppet server to client, I 
 am error like below
 
 err: compile error
 (erb):1189: Invalid char `\027' in expression
 
 Please help.
 -- 
   Regards
 
  Sumith 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Puppet Users group.
 To post to this group, send email to puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to 
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/puppet-users?hl=en.
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Puppet Users group.
 To post to this group, send email to puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to 
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/puppet-users?hl=en.
 
 
 
 -- 
   Regards
 
  Sumith 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Puppet Users group.
 To post to this group, send email to puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to 
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/puppet-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] err: compile erro

2011-05-24 Thread Sumith Sudhakaran
But when I am trying to transfer, getting error only

 err: Could not retrieve catalog from remote server: Error 400 on SERVER:
compile error
(erb):2385: Invalid char `\217' in expression
(erb):2385: Invalid char `\333' in expression
(erb):2385: Invalid char `\026' in expression
(erb):2385: Invalid char `\210' in expression
(erb):2385: Invalid char `\354' in expression

This file size is 7Mb. I am able to transfer Kb files without any error.

On Tue, May 24, 2011 at 1:49 PM, Denmat tu2bg...@gmail.com wrote:

 No, there is no file limit that I'm aware of. It uses https to copy the
 file and on the native webrick server maybe you're hitting some inherent
 timeout or other.

 There are some old pre .25 discussions on it.

 http://groups.google.com/group/puppet-users/browse_thread/thread/7e91404c1673b2b1

 Basic conclusion seems to be to use apache if you're going to transfer
 large files.

 I uses apache/passenger combination and don't have file transfer issues,
 but I can't recall if any of the files are larger than 3mb.

 Cheers,
 Den

 On 24/05/2011, at 17:50, Sumith Sudhakaran  sumit...@gmail.com
 sumit...@gmail.com wrote:

 Hi,

 Thanks for the reply

 When I am trying to transfer/update a big file ( more than 3mb ) from
 server to agent,  its copying/updaing only 275kp . Please let me know if any
 file limit settings in puppet configuration.

 On Tue, May 24, 2011 at 1:05 PM, Denmat  
 tu2bg...@gmail.comtu2bg...@gmail.com
 tu2bg...@gmail.com wrote:

 Hi,

 It is complaining that you have an illegal character in your ERB file.

 We will need to see more of your manifest to help any further.

 Have a look at these links and see if they don't help you first.

 http://docs.puppetlabs.com/guides/templating.html#syntax-checkinghttp://docs.puppetlabs.com/guides/templating.html#syntax-checking
 http://docs.puppetlabs.com/guides/templating.html#syntax-checking

 http://www.devco.net/pubwiki/Puppet/GettingStarted/5http://www.devco.net/pubwiki/Puppet/GettingStarted/5
 http://www.devco.net/pubwiki/Puppet/GettingStarted/5

 This is a great site for helping to debug code too:
 http://www.devco.net/archives/2009/08/19/tips_and_tricks_for_puppet_debugging.phphttp://www.devco.net/archives/2009/08/19/tips_and_tricks_for_puppet_debugging.php
 http://www.devco.net/archives/2009/08/19/tips_and_tricks_for_puppet_debugging.php

 Cheers,
 Den


 On 24/05/2011, at 17:01, Sumith Sudhakaran  
 sumit...@gmail.comsumit...@gmail.com
 sumit...@gmail.com wrote:


 Hi,

 I am trying to transfer more than 3mb file form puppet server to client, I
 am error like below

 err: compile error
 (erb):1189: Invalid char `\027' in expression

 Please help.
 --
 *  Regards***

 * Sumith** *

  --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To post to this group, send email to 
 puppet-users@googlegroups.compuppet-users@googlegroups.com
 puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to
 puppet-users%2bunsubscr...@googlegroups.compuppet-users+unsubscr...@googlegroups.com
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/puppet-users?hl=enhttp://groups.google.com/group/puppet-users?hl=en
 http://groups.google.com/group/puppet-users?hl=en.

  --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To post to this group, send email to 
 puppet-users@googlegroups.compuppet-users@googlegroups.com
 puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to
 puppet-users%2bunsubscr...@googlegroups.compuppet-users+unsubscr...@googlegroups.com
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/puppet-users?hl=enhttp://groups.google.com/group/puppet-users?hl=en
 http://groups.google.com/group/puppet-users?hl=en.




 --
 *  Regards***

 * Sumith** *

  --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To post to this group, send email to puppet-users@googlegroups.com
 puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to
 puppet-users+unsubscr...@googlegroups.com
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/puppet-users?hl=en
 http://groups.google.com/group/puppet-users?hl=en.

  --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To post to this group, send email to puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/puppet-users?hl=en.




-- 
*  Regards***

* Sumith** *

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this 

Re: [Puppet Users] err: compile erro

2011-05-24 Thread Sumith Sudhakaran
Hi,

below I am mentioning my manifests file

file { /usr/11.pdf:
owner = root,
group = root,
mode  = 664,
content = template(/usr/11.pdf),
}


On Tue, May 24, 2011 at 1:05 PM, Denmat tu2bg...@gmail.com wrote:

 Hi,

 It is complaining that you have an illegal character in your ERB file.

 We will need to see more of your manifest to help any further.

 Have a look at these links and see if they don't help you first.

 http://docs.puppetlabs.com/guides/templating.html#syntax-checking

 http://www.devco.net/pubwiki/Puppet/GettingStarted/5

 This is a great site for helping to debug code too:

 http://www.devco.net/archives/2009/08/19/tips_and_tricks_for_puppet_debugging.php

 Cheers,
 Den


 On 24/05/2011, at 17:01, Sumith Sudhakaran sumit...@gmail.com wrote:


 Hi,

 I am trying to transfer more than 3mb file form puppet server to client, I
 am error like below

 err: compile error
 (erb):1189: Invalid char `\027' in expression

 Please help.
 --
 *  Regards***

 * Sumith** *

  --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To post to this group, send email to puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/puppet-users?hl=en.

  --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To post to this group, send email to puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/puppet-users?hl=en.




-- 
*  Regards***

* Sumith** *

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] err: compile erro

2011-05-24 Thread Denmat
Hi,

You trying to use a PDF as a template file?

I think I've already told you that template won't work as you are telling 
puppet to use the erb interpreter.

 content = template(/usr/11.pdf),

Try:
source = /usr/11.pdf

or use a uri to to location of the file.

I strongly urge you to read the documentation provided in the various links 
I've included in my replies.

Cheers,
Den

On 24/05/2011, at 19:02, Sumith Sudhakaran sumit...@gmail.com wrote:

 Hi,
 
 below I am mentioning my manifests file 
 
 file { /usr/11.pdf:
 owner = root,
 group = root,
 mode  = 664,
 content = template(/usr/11.pdf),
 }
 
 
 On Tue, May 24, 2011 at 1:05 PM, Denmat tu2bg...@gmail.com wrote:
 Hi,
 
 It is complaining that you have an illegal character in your ERB file.
 
 We will need to see more of your manifest to help any further.
 
 Have a look at these links and see if they don't help you first.
 
 http://docs.puppetlabs.com/guides/templating.html#syntax-checking
 
 http://www.devco.net/pubwiki/Puppet/GettingStarted/5
 
 This is a great site for helping to debug code too:
 http://www.devco.net/archives/2009/08/19/tips_and_tricks_for_puppet_debugging.php
 
 Cheers,
 Den
 
 
 On 24/05/2011, at 17:01, Sumith Sudhakaran sumit...@gmail.com wrote:
 
 
 Hi,
 
 I am trying to transfer more than 3mb file form puppet server to client, I 
 am error like below
 
 err: compile error
 (erb):1189: Invalid char `\027' in expression
 
 Please help.
 -- 
   Regards
 
  Sumith 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Puppet Users group.
 To post to this group, send email to puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to 
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/puppet-users?hl=en.
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Puppet Users group.
 To post to this group, send email to puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to 
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/puppet-users?hl=en.
 
 
 
 -- 
   Regards
 
  Sumith 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Puppet Users group.
 To post to this group, send email to puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to 
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/puppet-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] err: compile erro

2011-05-24 Thread Sumith Sudhakaran
source option is giving error like below,

err: /Stage[main]/Motd/File[/opt/libisc.a]: Could not evaluate: Error 400 on
SERVER: Not authorized to call find on /file_metadata/usr/local/lib/libisc.a
Could not retrieve file metadata for
puppet://puppetmaster.localdomain/usr/local/lib/libisc.a: Error 400 on
SERVER: Not authorized to call find on /file_metadata/usr/local/lib/libisc.a
at /etc/puppet/manifests/classes/motd.pp:10

But I am able to transfer Kb file using template option, that's why I
followed the same in Mb case also.

On Tue, May 24, 2011 at 3:37 PM, Denmat tu2bg...@gmail.com wrote:

 Hi,

 You trying to use a PDF as a template file?

 I think I've already told you that template won't work as you are telling
 puppet to use the erb interpreter.

 content = template(/usr/11.pdf),


 Try:
 source = /usr/11.pdf

 or use a uri to to location of the file.

 I strongly urge you to read the documentation provided in the various links
 I've included in my replies.

 Cheers,
 Den

 On 24/05/2011, at 19:02, Sumith Sudhakaran  sumit...@gmail.com
 sumit...@gmail.com wrote:

 Hi,

 below I am mentioning my manifests file

 file { /usr/11.pdf:
 owner = root,
 group = root,
 mode  = 664,
 content = template(/usr/11.pdf),
 }


 On Tue, May 24, 2011 at 1:05 PM, Denmat  
 tu2bg...@gmail.comtu2bg...@gmail.com
 tu2bg...@gmail.com wrote:

 Hi,

 It is complaining that you have an illegal character in your ERB file.

 We will need to see more of your manifest to help any further.

 Have a look at these links and see if they don't help you first.

 http://docs.puppetlabs.com/guides/templating.html#syntax-checkinghttp://docs.puppetlabs.com/guides/templating.html#syntax-checking
 http://docs.puppetlabs.com/guides/templating.html#syntax-checking

 http://www.devco.net/pubwiki/Puppet/GettingStarted/5http://www.devco.net/pubwiki/Puppet/GettingStarted/5
 http://www.devco.net/pubwiki/Puppet/GettingStarted/5

 This is a great site for helping to debug code too:
 http://www.devco.net/archives/2009/08/19/tips_and_tricks_for_puppet_debugging.phphttp://www.devco.net/archives/2009/08/19/tips_and_tricks_for_puppet_debugging.php
 http://www.devco.net/archives/2009/08/19/tips_and_tricks_for_puppet_debugging.php

 Cheers,
 Den


 On 24/05/2011, at 17:01, Sumith Sudhakaran  
 sumit...@gmail.comsumit...@gmail.com
 sumit...@gmail.com wrote:


 Hi,

 I am trying to transfer more than 3mb file form puppet server to client, I
 am error like below

 err: compile error
 (erb):1189: Invalid char `\027' in expression

 Please help.
 --
 *  Regards***

 * Sumith** *

  --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To post to this group, send email to 
 puppet-users@googlegroups.compuppet-users@googlegroups.com
 puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to
 puppet-users%2bunsubscr...@googlegroups.compuppet-users+unsubscr...@googlegroups.com
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/puppet-users?hl=enhttp://groups.google.com/group/puppet-users?hl=en
 http://groups.google.com/group/puppet-users?hl=en.

  --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To post to this group, send email to 
 puppet-users@googlegroups.compuppet-users@googlegroups.com
 puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to
 puppet-users%2bunsubscr...@googlegroups.compuppet-users+unsubscr...@googlegroups.com
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/puppet-users?hl=enhttp://groups.google.com/group/puppet-users?hl=en
 http://groups.google.com/group/puppet-users?hl=en.




 --
 *  Regards***

 * Sumith** *

  --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To post to this group, send email to puppet-users@googlegroups.com
 puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to
 puppet-users+unsubscr...@googlegroups.com
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/puppet-users?hl=en
 http://groups.google.com/group/puppet-users?hl=en.

  --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To post to this group, send email to puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/puppet-users?hl=en.




-- 
*  Regards***

* Sumith** *

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit