Hi Tim and thanks for the replies. The code snippet for the facter will probably turn out to be very welcome.
Regarding the generate function: > > Q2) Is it possible to pass information (e.g. string) i.e. an output of > > an “exec” execution on a puppet-client and store this information into > > a puppet variable? > > > Take a look at the generate function: > http://docs.reductivelabs.com/references/0.25.1rc2/function.html#gene... > > I think that can do what you need. I thought also before that this could do the trick, but as indicated on the web (http://docs.reductivelabs.com/references/stable/ function.html#generate) the generate executes a command on the puppet MASTER-server (not on the client), so this does not work as such - unless the command to run on the puppet master server is actually a remote SSH command to the respective puppet client. We'll perhaps I'm thinking too much in procedural way as writing a shell or a shell script. Probably once I get to know the tool more in practice I realize I can live without the above. Thanks again, -Asko -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.