Page MenuHomePhabricator

Cumin: create external backend for WMCS Puppet API
Open, MediumPublic

Description

After support for external backends in Cumin was added in T178342, it is now possible to write an external backend for the WMCS Puppet API to allow to query hosts also by their Puppet classes.

Event Timeline

Volans triaged this task as Medium priority.Nov 6 2017, 11:27 AM

openstack-browser is not the source of the data, horizon inserts it into a service known as encapi, openstack-browser merely queries that.

People working on this task will probably want to add a GET route to modules/openstack/files/puppet/master/encapi/labspuppetbackend.py in operations/puppet.git (to make it quick to get data about all instances and their puppet classes in one query), and it will be exposed within the labs network at http://puppetmaster.cloudinfra.wmflabs.org:8100 where a cumin backend can pick it up without needing to send hundreds of requests