Can i receive enc for other hosts

hello
there are tasks - receive list of databases and configure connection to all
of them from web app.
I can use function foreman
https://github.com/theforeman/puppet-foreman/blob/master/lib/puppet/parser/functions/foreman.rb,
but require configure tls or basic auth.
Can i receive same information by node.rb or more easy ?
thanks

So long as the user connecting to the API has the required rights, then
yes, you can retrieve information via node.rb. However anything in the ENC
is available in Foreman itself, so it might be easier to specify that
information in the ENC of the target host, via a smart class parameter -
depends exactly on what you're trying to achieve, of course.

ยทยทยท On Tuesday, 22 August 2017 15:48:39 UTC+1, Dmitry Vasilets wrote: > > hello > there are tasks - receive list of databases and configure connection to > all of them from web app. > I can use function foreman > https://github.com/theforeman/puppet-foreman/blob/master/lib/puppet/parser/functions/foreman.rb, > but require configure tls or basic auth. > Can i receive same information by node.rb or more easy ? > thanks >