semaphore icon indicating copy to clipboard operation
semaphore copied to clipboard

[Feature Request] URL/HTTP Inventory source

Open CvH opened this issue 1 year ago • 2 comments

It would be nice if there is a possibility to get the inventory from a url. For example we provide a api to generate a dynamic list of devices and provide it at some url.

Currently I need to workaround the usecase with a shell script that downloads from the url to disk (and cron it) and read it as file at semaphore.

CvH avatar Apr 10 '24 09:04 CvH

Hi @CvH Yes, you are right. We need to extend your inventories.

fiftin avatar Apr 14 '24 11:04 fiftin

Reading inventory from a URL would be great, or being able to supply a custom dynamic inventory plugin— overall the docs on Semaphore's support of these workflows is kind of murky, with a lot of confusion in forums and issue trackers about what is supported vs not vs happens to work right now but could go away at any time:

  • https://www.reddit.com/r/ansible/comments/1ctr4f1/help_with_ansible_semaphore/
  • https://github.com/semaphoreui/semaphore/issues/47
  • https://github.com/semaphoreui/semaphore/discussions/1336#discussioncomment-6495809

It's particularly unclear which of these workflows is available on the hosted SAAS offering, since "just put a random file on the server" is presumably not an option in those cases.

mikepurvis avatar Jun 06 '25 17:06 mikepurvis