search for: functionreference

Displaying 6 results from an estimated 6 matches for "functionreference".

2009 Jun 18
7
Testing if a resource is already defined
Hi gang, Is it possible to test if a particular resource has already been defined? I''d like to do something like this: if !Host["$fqdn"] { host {"$fqdn": ip => "$ipaddress_eth0" } } Essentially, test to see if there is no Host resource defined for the current server and if not, add a host entry for itself using the IP address of eth0. Possible?
2007 Apr 24
10
Announce: References are now on Trac
I''ve converted all of the inline docs over to restructured text, and I''ve got them all up on trac: http://reductivelabs.com/trac/puppet/wiki/TypeReference http://reductivelabs.com/trac/puppet/wiki/FunctionReference http://reductivelabs.com/trac/puppet/wiki/ReportReference http://reductivelabs.com/trac/puppet/wiki/ConfigurationReference Please let me know if you find any errors in the translation, or in the documents in general. I''ve modified puppetdoc so it can write directly to trac as long as...
2007 Jul 12
11
Problem with "defined" keyword
Hi, I''m running Puppet 0.23.0 on my servers, and i got something like this: In a classa.pp file (included in site.pp): class A { file { "test1": ... } } In a classb.pp file (included in site.pp): class B { file { "test2": ... } if defined(File["test1"]) { ... do things ... } if
2007 Sep 27
12
How does "case defined(Package["package"])" work?
I''m trying to use a "case defined" statement to configure Munin to automatically create plugin links for packages that are defined by Puppet but the behaviour seems to be unpredictable. I have a similar setup for Samba which works, but the Postfix one doesn''t and I can''t see any difference between them. Can some explain to me how "case
2009 Jun 09
2
err: Connection timeout calling puppetmaster.getconfig: execution expired
Hi all, My current conf splits 188 clients execution in one hour, and puppet runs as a cron job. My server (2cpu 2 GB RAM) runs with mongrel (with 8 puppetmasterd) and this conf works fine. We''d like puppet to run clients all at same time (force a change, i.e.), so we''re testing several things. (Previous conf do not support massive execution). First and most important, is
2009 Nov 26
26
Module Execution Order
So.. I''ve been fighting with trying to get puppet to include/execute module in a certain order for several weeks now. I kind of have something hacked together, but it scares me a bit since I don''t know exactly what is happening. I don''t suppose there''s still an easy way to do this....? Doug -- You received this message because you are subscribed to the