[Puppet Users] Puppet Mssql Module

2013-02-25 Thread Rakesh Kathpal
Hi, I am trying to use the module * https://github.com/puppetlabs/puppetlabs-mssql* for my windows 2003 server and am getting the error below - err: /Stage[main]/Mssql/User[SQLSVC]/ensure: change from absent to present fail

Re: [Puppet Users] I can't access modules, for some reason

2013-02-25 Thread Ryan Coleman
On Sun, Feb 24, 2013 at 9:11 PM, James Gill wrote: > Am I missing something? Does something else have to be set up for me to > access modules? Detailed output below. > Try running `sudo puppet config print modulepath`. While you're using `puppet apply` as a super user, every other command you'

Re: [Puppet Users] Regd applying condition

2013-02-25 Thread Nikola Petrov
Check the creates in the exec documentation. It will make the exec type to execute as long as the file *doesn't*exist -- Nikola On Sun, Feb 24, 2013 at 11:04:16PM -0800, yarlagadda ramya wrote: > Hi all, > This is the class i have written for downloading and installing jdknow > i want to a

Re: [Puppet Users] Re: .erb templates are not properly parsed.

2013-02-25 Thread Felix Frank
On 02/22/2013 07:19 PM, jcbollinger wrote: > So finally my conclusion is that when you declase a node, includes > order matters. > > > Yes, it does. ...but I'd argue that this should not be your final conclusion. It has been my experience (but this may be a question of manifest culture)

[Puppet Users] Re: Regd applying condition

2013-02-25 Thread yarlagadda ramya
yes...thankyou...will apply it.. On Monday, 25 February 2013 12:34:16 UTC+5:30, yarlagadda ramya wrote: > > Hi all, > This is the class i have written for downloading and installing jdknow > i want to apply a condition using if for it such that...this downloads the > file and installs it onl

Re: [Puppet Users] Re: .erb templates are not properly parsed.

2013-02-25 Thread Marc Bolós
Felix, Thanks for your tips. 2013/2/25 Felix Frank > On 02/22/2013 07:19 PM, jcbollinger wrote: > > So finally my conclusion is that when you declase a node, includes > > order matters. > > > > > > Yes, it does. > > ...but I'd argue that this should not be your final conclusion. > > It

Re: [Puppet Users] gem packages installed directory on puppetmaster

2013-02-25 Thread Felix Frank
Hi, I don't really understand the problem. On 02/22/2013 07:29 PM, Sai_Emc wrote: > /opt/puppet/lib/gems/1.8/gems/hiera-0.3.0 > /opt/puppet/lib/gems/1.8/gems/hiera-puppet-0.3.0 > > Later when I updated to new version of hiera then it installed (via gem > install) under > > /opt/puppet/lib/gem

Re: [Puppet Users] How to check service status to write monit snippet.

2013-02-25 Thread Felix Frank
Hi, I'm almost certain I don't really understand your problem, but here's the most simple answer, so we can work from there: Your ENC should set a variable value for each service on each node, e.g.: $ssh => true $ntp => false ... If a given value is true, include the snippet. If not, don't. On

Re: [Puppet Users] Using Facter to find the Java version running on the machine

2013-02-25 Thread Camerodity
Great! Thank you so much, I used your example and got the desired output. I really appreciate your time. Mike On Thursday, February 21, 2013 5:50:24 PM UTC-5, Ygor wrote: > java -version 2>&1 | head -n 1 | cut -f2 -d'"' > > Apparently, the output goes to stderr ! > > “Sometimes I think the

Re: [Puppet Users] Using Facter to find the Java version running on the machine

2013-02-25 Thread Camerodity
Steven, Thanks!! Your example really helped me and I now have the desired custom fact On Thursday, February 21, 2013 6:06:57 PM UTC-5, Steven wrote: > This is the fact that I use > > Facter.add("java_version") do > setcode do > `/usr/bin/java -version 2>&1`.split("\n")[0].split('

Re: [Puppet Users] Retrieving the name of the module where a define is used

2013-02-25 Thread Nikola Petrov
Well you can use calling_module and also all the variables defined in http://docs.puppetlabs.com/puppet/latest/reference/lang_variables.html#facts-and-built-in-variables Not sure why calling_module is not there at the moment. There might be two reasons for this: * it is more experimental * it is

Re: [Puppet Users] gem packages installed directory on puppetmaster

2013-02-25 Thread Sai_Emc
Felix , Thanks for your reply. Please see the below thread. I deleted this post, because my title was'nt clear. Not sure how it showed up again. Yes, I did removed old hiera and updated new one. Still no use. https://groups.google.com/forum/?hl=en&fromgroups#!topic/puppet-users/Fueb5cXA9Fg

[Puppet Users] Re: How to check service status to write monit snippet.

2013-02-25 Thread eduardo
Thanks felix, I'm trying to do a validator for monit module. I'm pretending down services are not controlled by monit, avoiding false alarm from monit service. I was work around with something like : class monit($services) { include monit::checkservice, monit::snippet monit

[Puppet Users] Re: defaultto in hash property not obeyed

2013-02-25 Thread jcbollinger
It looks like you are stumbling over a Ruby syntax ambiguity. The fragment "{}" can be either an empty hash or an empty block. Because the 'defaultto' method can accept a block, Ruby resolves the ambiguity in favor of that interpretation. I think it will work better (and also be clearer) if

Re: [Puppet Users] Re: How to check service status to write monit snippet.

2013-02-25 Thread Felix Frank
Hi, that's actually a sound implementation. Try this for debugging: $comma_separated_list = inline_template(" <%= scope.lookupvar("::monit::services") * ', ' %>") notify { "Services list: $comma_separated_list": } Inside a class, not inside the defined type. Cheers, Felix On 02/25/2013 03:52

[Puppet Users] Re: IPv6 for puppet agent

2013-02-25 Thread Andrey Kononov
I have find this bug in redmine http://projects.puppetlabs.com/issues/12517 it will be fixed ? понедельник, 25 февраля 2013 г., 10:50:27 UTC+4 пользователь Andrey Kononov написал: > > I don`t understand how to tell to puppet agent use ipv6 puppetmaster > address its dont work when i say "

Re: [Puppet Users] puppetlabs-lvm and --guess-fstype

2013-02-25 Thread Chuck
Yep.. Red Hat was nice enough to take "--guest-fstype" out of RHEL 6.4. On Friday, February 22, 2013 4:25:04 AM UTC-6, steve foster wrote: > > Logged a bug: > > http://projects.puppetlabs.com/issues/19410 > > On Friday, 22 February 2013 09:47:33 UTC, Mathieu Bornoz wrote: >> >> Hi, >> >> I just

[Puppet Users] Rubygems 2.0.0 removed argument

2013-02-25 Thread matthias
I recently upgraded one of our puppet agent servers to use rubygems 2.0.0. When I run 'puppet agent --test' after the upgrade it complains that there is an invalid option with using --include-dependencies switch (output below). Is there a way to pass arguments to puppet when using gem as the

[Puppet Users] Re: puppet could'nt find hiera even when hiera gem is installed

2013-02-25 Thread Sai_Emc
This issue got resolved. Looks like hiera functions created as a softlink under site_ruby. /opt/puppet/lib/site_ruby/1.8/puppet/parser/functions total 112 lrwxrwxrwx 1 root root 84 Jun 20 2012 hiera.rb -> ../../../../../gems/1.8/gems/hiera-puppet-0.3.0/lib/puppet/parser/functions/hiera.r

[Puppet Users] Re: Rubygems 2.0.0 removed argument

2013-02-25 Thread Reginald Choudari
We are seeing the same issue with our automated deployment of puppetmaster. We are using 'puppetlabs-passenger' install passenger, and we get the same issue (See below). Looks like the gem provider has deprecated arguments; AFAIK --include-dependencies has become default for gem install. Notice

[Puppet Users] Re: Rubygems 2.0.0 removed argument

2013-02-25 Thread Reginald Choudari
We are seeing the same issue with our automated deployment of puppetmaster. We are using 'puppetlabs-passenger' install passenger, and we get the same issue. Looks like the gem provider has deprecated arguments; AFAIK --include-dependencies has become default for gem install. On Monday, Februar

[Puppet Users] Intermittent Erorr 400 on Server messages

2013-02-25 Thread Jagga Soorma
Hi Guys, I am running puppet server version 3.0.2-1 on a RHEL 5.8 virtual machine with about 110 clients. I am seeing intermittent errors with my clients that are failing with the following error messages: -- Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find c

[Puppet Users] Re: Can someone provide more clarity on Puppi

2013-02-25 Thread Krishna Murthy T
Hello Alessandro, Thanks again for your reply, I managed to install puppi on some of my network nodes today by following your instrunctions, but I got below problem. When ever I do 'puppi deploy ' it is deleting everything under tomcat webapps directory by not creating anything so effectively

[Puppet Users] Re: virtual resources: cannot change gid before delete group

2013-02-25 Thread Vlados Vladosov
I solve this problem. Thank you. By one pass the next task solved: 1) creating-change groups 2) creating-change users 3) remove users 4) remove groups Groups and Users list are virtual in class. The construction must be next: if $fqdn =~ /ru-msk-tes-front.russia.test/ { Group <| title == '

Re: [Puppet Users] Retrieving the name of the module where a define is used

2013-02-25 Thread Nick Fagerlund
calling_module isn't a puppet variable. It's something special from the Puppet backend to Hiera, and I'm not entirely sure how it works or even whether it currently works. $caller_module_name is a legit puppet variable, though. On Monday, February 25, 2013 6:10:37 AM UTC-8, nikolavp wrote: > >

[Puppet Users] package download using manifest

2013-02-25 Thread Mamta Garg
Hi All, Can anyone please tell me if we can download package from website using puppet manifests? If yes,could you please provide me a example. -- Thanks and Regards, Mamta Garg -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe