On Wednesday, November 13, 2013 10:03:35 AM UTC-6, ulrich igor ngouagna kouete wrote: > > Hi, > > I'm looking for a resource / type that will allow me to issue web requests > from a manifest file. I've heard about the web_request module , but seems > quite dificult to use (in fact I do not succeed in issuing a POST request > with a JSON body doc). > > Any ideas about that? > >
Custom resources types are not well suited to the job you describe. If the objective is to retrieve data from a web service into a Puppet variable (or similar), then you probably want a function. The general-purpose generate() function could be applied to the task, perhaps in combination with wget. Alternatively, you could look into writing a custom function for the purpose -- it's not that hard if you have a passing familiarity with Ruby. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/45e09f18-7e9a-4134-896f-7ef37a643e1f%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.