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 >
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. -- You received this message because you are subscribed to the Google Groups "Foreman users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/foreman-users. For more options, visit https://groups.google.com/d/optout.
