Skip to content
Snippets Groups Projects
  1. Jul 12, 2021
    • Evangelos Foutras's avatar
      hcloud_inventory: Optimize --list to avoid --host calls · 452090f6
      Evangelos Foutras authored
      By adding a top-level element called "_meta" to the --list response,
      Ansible will not call the inventory script with --host for each host
      thus saving a lot of time and many requests to the Hetzner Cloud API.
      
      The speed-up is significant; `ansible-inventory --list` is down from
      about 1 minute to just 7 seconds in my testing (with ~60ms latency).
      Verified
      452090f6
  2. Sep 23, 2020
  3. Jul 24, 2020
  4. Jun 13, 2019
  5. Mar 31, 2019
    • Sven-Hendrik Haase's avatar
      Use custom hcloud dynamic inventory script · 2d38b6ff
      Sven-Hendrik Haase authored
      This has multiple benefits:
      - We don't have to wait until Ansible 2.8 (which will be when the official hcloud dynamic inventory provider will be included)
      - We can expand the script to group servers by labels if required
      - We can use the vault to automatically get the hetzner cloud token which is not possible otherwise
      2d38b6ff
Loading