[Puppet Users] facter 1.7.1 crashed on sshfp_* facts

2013-06-23 Thread Alexander Grushin
Hi, after upgrade to facter 1.7.1 on a few boxes it get broken: # facter -p --debug sshfp_rsa value for lsbdistid is still nil Illegal instruction # facter -p --debug sshfp_dsa value for lsbdistid is still nil Illegal instruction # facter -v 1.7.1 Perhaps, there are something wrong around ssh ke

Re: [Puppet Users] Re: Exec onlyif/unless with internal functions instead of external commands?

2013-06-23 Thread David Schmitt
Functions are executed on the master, not on the agent, so they won't do what you need. If you really want to run code on the client it has to be a type/provider. If it is only "test -e", use "File%creates". Regards, David On 24.06.2013 03:59, Michael Dodwell wrote: Take a look at http://doc

Re: [Puppet Users] Re: PuppetDB queries using custom facts

2013-06-23 Thread Alexander Grushin
You are right, thanks! Custom fact get disappearing because of periodic run of puppet agent with old facter. Restart solved this problem. On Thursday, June 20, 2013 1:18:09 PM UTC+4, David Schmitt wrote: > > Perhaps you have still an agent running who has loaded an older facter > version? > >

Re: [Puppet Users] Calling a custom class module via a manifest - puppet 0.24.8

2013-06-23 Thread Keith Burdis
Perhaps try removing the final trailing comma after enable => "false". Some Puppet versions have a problem with this. - Keith On 24 Jun 2013 01:11, "Manoj Bhola" wrote: > Hi, > > I hope someone can help. > > I have created a custom class module which updates a configuration file. > > When I us

[Puppet Users] Re: Calling a custom class module via a manifest - puppet 0.24.8

2013-06-23 Thread Michael Dodwell
Try putting single ticks around the class name when you call it: class {'novell-httpstkd': addr => "$ipaddress", saddr => "$ipaddress", filteraddr => "192.168.69.20", filtersubnet => "192.168.1.0 255.255.255.0", cipher => "low", mailserver => "mail.localdomain", mailfrom => "nrm@$fq

[Puppet Users] Re: Exec onlyif/unless with internal functions instead of external commands?

2013-06-23 Thread Michael Dodwell
Take a look at http://docs.puppetlabs.com/guides/custom_functions.html you could write your own fuctions to give you something like this. Puppet hasn't really been designed to be low overhead (with more of a focus on simplicity) and i think the least of it's performance problems come from the f

[Puppet Users] Puppet cloud_provisioner won't work with Scientific Linux

2013-06-23 Thread Dan C
Hi there, Yet if Scientific Linux(SL) is, as Centos, a rhel child, there are some differences. One of them is that yum variable "$releasever" in SL does not corresponds as in Centos to the "major" version but to "major.minor" version. So, instead of being a 6 it is, for example a 6.3. This subs

[Puppet Users] Calling a custom class module via a manifest - puppet 0.24.8

2013-06-23 Thread Manoj Bhola
Hi, I hope someone can help. I have created a custom class module which updates a configuration file. When I use the puppet command: puppet -e "include custom", the file is replaced using the template file included in the module correctly. When I try to update settings in the configuration fil

[Puppet Users] Can't find $HOME when executing a command on Ubuntu

2013-06-23 Thread F. Y.
Hello Puppet Users, I am running into a weird issue when trying to execute an installer on Ubuntu 10.04/12.04 machines. I am using Puppet 3.2.1, and 3.2.2 respectively from Puppet Labs repo. This is the sample code: class installpackage { file { 'MyInstallerFile': path => '/tm

[Puppet Users] Exec onlyif/unless with internal functions instead of external commands?

2013-06-23 Thread Amos Shapira
Hi, A little annoyance about "exec" that bothers me is that there is no way to use "unless"/"onlyif" except with external commands, even if a simple Ruby function could be used to execute the test. e.g. "onlyif => 'test -d /data'" will fork and exec "test" to do a simple stat(2) which can be d

Re: [Puppet Users] Apply a specific manifest on agent

2013-06-23 Thread Jakov Sosic
On 06/20/2013 11:21 PM, Dhananjayan Ramesh wrote: Hi All, I am new to Puppet and I am wondering if there is a way to just apply a manifest one-time (present on the master, not included in site.pp) on an agent node without having to edit site.pp? It's like I want to run a command on the agent tha

[Puppet Users] Attention Puppet Experts: How to update java software on agent

2013-06-23 Thread Ripunjay Godhani
Hi All, I am new to PE. I have installed PE master and agent . also i am able to access webconsole. *I want to know how can i install/update software like java using Puppet on master and agent ?* Thanking all in advance! Regards, Ripunjay -- You received this message because you are