there are tasks - receive list of databases and configure connection to all
of them from web app.
I can use function foreman
but require configure tls or basic auth.
Can i receive same information by node.rb or more easy ?
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.