I am trying to write a module containing a function that returns parameters from a webservice - http://localhost:5000/app/api/nodes/node_id. This function should return a hash of configuration settings specific to that host. How do I do this? I am using puppet 3.0.
pseudo code is as follows new module.pp function get_config_from_host(host_id): call http://localhost:5000/app/api/nodes/node_id and get the config hash of host_id return config hash I am new to puppet, so confused whether it is possible to do this in puppet [Purpose of this exercise is to replace hiera] -- 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/dc8258ac-59f6-4aa0-b3fa-1c989e39fee6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.