Re: [Puppet Users] Scope object available functions and getting the local scope, or node scope variable values

2012-11-17 Thread Abhijeet R
ps.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. -- Cheers, Abhijeet R http://blog.abhijeetr.com -- You received this message because you are subscribed to the Goo

Re: [Puppet Users] Re: Sending debug messages from manifests

2012-11-16 Thread Abhijeet R
Oh, for some reason, I missed that. They are already available. I am new to puppet. I should really read all the reference before doing things myself. Sorry for the trouble guys. I wish I could delete the irrelevant post but this is a ML. :( On Fri 16 Nov 2012 11:06:49 PM IST, Rajul Vora wro

[Puppet Users] Re: Sending debug messages from manifests

2012-11-16 Thread Abhijeet R
ng","err","alert","emerg" or "crit" ') end $dummy = function_inline_template("<% " + "Puppet." + $level + "(\"" + $code_to_execute + "\")" + "%>") end On Fri 16 Nov 2012 10:46:38 PM IS

[Puppet Users] Sending debug messages from manifests

2012-11-16 Thread Abhijeet R
re information can be found here: http://blog.abhijeetr.com/2012/11/execute-ruby-code-from-within-puppet.html Shouldn't this be included in the standard puppet? Or if it's helpful, why isn't it already included? Or is it already there and it's just that I don't k

Re: [Puppet Users] Sending output to debug level log from custom parser function

2012-11-16 Thread Abhijeet R
Thanks. That worked. :) On Wed 14 Nov 2012 10:11:10 PM IST, Jeff McCune wrote: On Wed, Nov 14, 2012 at 4:29 AM, Abhijeet R wrote: Hi, I created a custom function by reading the doc from here http://docs.puppetlabs.com/guides/custom_functions.html It's a function to return proper fil

[Puppet Users] Sending output to debug level log from custom parser function

2012-11-14 Thread Abhijeet R
ctual path returned by the function in /var/log/puppet/puppet.log. How can I do that? Does this question better suited for puppet-dev or it can be done easily? I want to use the function that's used to send debug log in custom parser function. -- Cheers, Abhijeet R http://blog.abh

[Puppet Users] Re: Fact precedence in modules

2012-11-06 Thread Abhijeet R
number of confines for that fact". If I don't add any confine statements in ruby code, how is this confines thing calculated? On 11/06/2012 01:02 PM, Abhijeet R wrote: Hi guys, I am trying to understand fact precedence and pluginsync. Documentation says, by default, the weight of a

[Puppet Users] Fact precedence in modules

2012-11-05 Thread Abhijeet R
ib/facter" while the other exists in "/var/lib/puppet/lib/facter/test" folder. Running strace reveals that facter command opens both test.rbs but somehow selects the correct one. The behaviour that's happening is expected but I am trying to understand why is this happ

Re: [Puppet Users] Accessing variable from a user defined resource in the same module

2012-10-26 Thread Abhijeet R
lues out of the definition to some place accessible to everyone who wants it. Common choices for such a place include variables of some class and external data (perhaps accessed via hiera). -- Cheers, Abhijeet R http://blog.abhijeetr.com -- You received this message because you are subscribed to th

Re: [Puppet Users] Accessing variable from a user defined resource in the same module

2012-10-26 Thread Abhijeet R
On Fri 26 Oct 2012 04:42:56 PM IST, Calvin Walton wrote: On Fri, 2012-10-26 at 13:16 +0530, Abhijeet R wrote: ---templates --t1.erb -> I want to access value of $a and $b here. Using mname::config::$a is not working. I am using <%= scope.lookupvar("mname::config::$a" %&g

[Puppet Users] Accessing variable from a user defined resource in the same module

2012-10-26 Thread Abhijeet R
re. Using mname::config::$a is not working. I am using <%= scope.lookupvar("mname::config::$a" %> to get the value. I am completely lost. Right now, I am using 2.7 and just accessing $a and $b directly (which is showing warnings) so it's working but this will start

Re: [Puppet Users] Re: Multiple resource definition error

2012-10-25 Thread Abhijeet R
s.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- Cheers, Abhijeet R http://blog.abhijeetr.com -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email t

Re: [Puppet Users] Re: Syntax error in 2.6.8 but not in 2.7.19

2012-10-25 Thread Abhijeet R
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. -- Cheers, Abhijeet R http://blog.abhijeetr.com -- You received

[Puppet Users] Syntax error in 2.6.8 but not in 2.7.19

2012-10-25 Thread Abhijeet R
environment and I had set a update hook to avoid any syntax errors and this is blocking me. What is going wrong here? -- Cheers, Abhijeet R http://blog.abhijeetr.com -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to thi

Re: [Puppet Users] Re: Multiple resource definition error

2012-10-25 Thread Abhijeet R
scribe 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. -- Cheers, Abhijeet R http://blog.abhijeetr.com -- You received this message because you are subscribed to the Google Groups "Puppet

[Puppet Users] Multiple resource definition error

2012-10-24 Thread Abhijeet R
ip_addr => '1.1.1.1', vip_addr_netmask => '2.2.2.2', } On Host B, everything would be same except the vip_addr value which results in multiple definition errors for the files that I'm serving. What is it that can be done? -- Cheers, Abhijeet R http://blog.abhijeetr.com

[Puppet Users] Import loop detected at "/location/to/file"

2012-10-12 Thread Abhijeet R
Hi, Till now, I used to use pre-commit hook on the client side but now I am planning to setup the update hook at the server side. While creating modules, the way we do it here is that there will be many files like *.pp in the manifest directory but there is one more file named init.pp that ha

[Puppet Users] Getting the catalog even if the puppet fails

2012-10-11 Thread Abhijeet R
Hi, I have a situation where loading of facts & caching for catalog is done. After that, the puppet fails with an error. 1. info: Caching catalog for my.domain.com 2. No title provided and "Nagios3::Host[]" is not a valid resource reference Now, the thing is, in my /var/lib/puppet/clie

Re: [Puppet Users] Use of camelCase causes issues in dependancy resolution

2012-08-13 Thread Abhijeet R
Thanks Stephen. It would have been great if violating the rule created error/warning while doing puppet test runs. Isn't it the desirable way to avoid bugs while doing dependency resolution? On Mon 13 Aug 2012 03:13:25 PM IST, Stephen Gran wrote: Hi, http://docs.puppetlabs.com/guides/language

[Puppet Users] Doubt while using the "--edit" option to start service

2012-07-19 Thread Abhijeet R
Hi, So, this is my first time using puppet. I was reading the introduction given on the official website here. http://docs.puppetlabs.com/learning/ral.html The page has mentioned that using the "--edit" option, I can change a resouce. So, to test that, I did, $service puppetmaster start $s