[Puppet Users] Re: Puppet Users] Re: Looking up information from the config...

2008-12-08 Thread RodneyQ
Hi Luke, >And ralsh has a --host option that allows you to connect to >remote hosts, if those remote hosts have enabled their 'resource' API. Can you please elaborate on this? How to enable the resource API? Is this just adding the listen option, port and include the namespaceauth.conf to puppe

[Puppet Users] Re: Puppet Users] Re: Looking up information from the config...

2008-12-08 Thread RodneyQ
Hi Jeff, Here is my example: I tried to check the types(service,packages,users,..etc) then check it again with another exec. node nx.example.org { ... ... exec { "getservices": command => "ralsh service mysq l |grep enable > /tmp/retval", path=> "/bin:/usr/bin",

[Puppet Users] Puppet 0.24.7RC2 released!

2008-12-08 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all We're back with the second release candidate for the 0.24.7 release - the last of the 0.24.x branch and codenamed Gonzo. There are a lot of new features and fixes in this release and we'd welcome whatever testing you are able to perform. You

[Puppet Users] Re: puppet 0.24.6 conf/redhat/client.init broken in RHEL versions < 5

2008-12-08 Thread Peter Meier
Hi > Unfortunately the '-p "$pidfile"' option is available in Red Hat Server > 5 but not earlier versions, where it produces an error: can you file a bug? (and maybe even a patch for it?) cheers pete --~--~-~--~~~---~--~~ You received this message because you ar

[Puppet Users] puppet 0.24.6 conf/redhat/client.init broken in RHEL versions < 5

2008-12-08 Thread Steven VanDevender
The conf/redhat/client.init script (installed in /etc/init.d) in 0.24.6 has this "status" method: status) status -p "$pidfile" $puppetd RETVAL=$? ;; Unfortunately the '-p "$pidfile"' option is available in Red Hat Server 5 but not earlier versions, where it produces an

[Puppet Users] Re: puppetmaster built via puppetd

2008-12-08 Thread Andrew Dickson
ohad, the setup you describe is exactly what i am trying to do. the problem seems to arise when i'm building a puppetmaster (host B) and it generates it's certificates. puppetd stores it's ca.pem in the same place that puppetmasterd tried to create ca.pem when it starts up. this means the ca.pem

[Puppet Users] Re: if file exists

2008-12-08 Thread Peter Meier
Hi >>> I think you'll want to try a custom function >>> http://reductivelabs.com/trac/puppet/wiki/WritingYourOwnFunctions >>> as they get executed server-side. Just cook up some ruby code to >>> check for your file existence, and you're almost done. >> >> no, facts get always executed on the cli

[Puppet Users] Re: if file exists

2008-12-08 Thread Felix Schäfer
Am 08.12.2008 um 22:14 schrieb Peter Meier: >> I think you'll want to try a custom function >> http://reductivelabs.com/trac/puppet/wiki/WritingYourOwnFunctions >> as they get executed server-side. Just cook up some ruby code to >> check for your file existence, and you're almost done. > > no, f

[Puppet Users] Re: if file exists

2008-12-08 Thread Nigel Kersten
Does this behavior of the source parameter help you come with an alternative method? "If you specify multiple file sources for a file, then the first source that exists will be used. This allows you to specify what amount to search paths for files:" http://reductivelabs.com/trac/puppet/wiki/Typ

[Puppet Users] Re: if file exists

2008-12-08 Thread Peter Meier
Hi >> Is there a condition test to see if a file exists on the >> puppetmaster? >> >> [...] >> >> I'm open to other ideas. The thought is I'd have one mechanism for >> loading license files and I'd manage them inside directories named >> after the $fqdn For this to work, I need that "exists" func

[Puppet Users] Re: if file exists

2008-12-08 Thread Felix Schäfer
Am 08.12.2008 um 19:23 schrieb Jeff: > Is there a condition test to see if a file exists on the > puppetmaster? > > [...] > > I'm open to other ideas. The thought is I'd have one mechanism for > loading license files and I'd manage them inside directories named > after the $fqdn For this to work,

[Puppet Users] masterport custom fact

2008-12-08 Thread Matt Hyclak
I am trying to get access to what port is being used by a client when it runs. The ultimate goal is to be able to run production puppet on port 8140, and a staging/test puppet on port 8150. A client could be converted between one or the other by overriding masterport on the command line, but once

[Puppet Users] if file exists

2008-12-08 Thread Jeff
Is there a condition test to see if a file exists on the puppetmaster? I have about 15 different license files that are loaded on thirteen servers. Not every license goes on every server. I'd like to serve the files only if they exist on the puppet master server. I'm thinking of doing it like thi

[Puppet Users] Re: Puppet Users] Re: Looking up information from the config...

2008-12-08 Thread Luke Kanies
On Dec 8, 2008, at 12:52 AM, Jeffrey Hulten wrote: > Rodney, > > Do you have any examples of how you are using RALSH that you can > share? I can give a few examples of how I use it, but I can't promise this mode will fit all that way for others. I mostly use ralsh for investigation or ad-h

[Puppet Users] Re: Looking up information from the config...

2008-12-08 Thread Evan Hisey
On Thu, Dec 4, 2008 at 4:41 PM, Jeffrey Hulten <[EMAIL PROTECTED]> wrote: > > Is there a way, in a puppet config, to query the current nodes config > elements and use them in a template? My specific case is a JBOSS > configuration with multiple instances on one server installation. I > have the s