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", } exec {"check_file_run": command => "/bin/echo 'replace or run a command here' > /tmp/ out.txt", path=> "/bin:/usr/bin", onlyif => ["test -f /tmp/retval","grep -r true /tmp/ retval" ], require => Exec["getservices"] } } On Dec 8, 2:52 pm, "Jeffrey Hulten" <[EMAIL PROTECTED]> wrote: > Rodney, > > Do you have any examples of how you are using RALSH that you can share? > > Thanks, > Jeff > > On Sun, Dec 7, 2008 at 7:31 PM, RodneyQ <[EMAIL PROTECTED]> wrote: > > > Hi Jeffrey, > > > I'm also new to puppet and currently using the ralsh to query > > packages, services. > > Hope others can also share their own info. :) > > > Cheers, > > Rodney > > > On Dec 5, 6:41 am, 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 server configured as a class (with unpacking the zip file and > > > making the server level changes), then each instance in a definition > > > (making a copy of the default instance config and changing instance > > > specific settings). > > > > The class needs to be able to look at the expected instances and make > > > some server level config changes (like one line in a common config for > > > each instance). > > > > Is this possible? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---