Ansible Constructed Inventory

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 6

  • @Mandalorx10
    @Mandalorx10 Год назад +2

    This channel is just pure gold

  • @lemonthenderson410
    @lemonthenderson410 4 месяца назад

    It would be great is you would show the actual walk through step by step. It is hard to find documentation or videos on how to enable Constructed Inventory in the drop down in AAP.

    • @alexdworjan
      @alexdworjan  4 месяца назад

      On the Inventories page, when you click the blue Add button, Add constructed inventory will be an option. You must be on AAP 2.4 or newer for constructed inventories to exist

    • @lemonthenderson410
      @lemonthenderson410 4 месяца назад

      @@alexdworjan Thank you for the quick reply.

  • @pallenrupp
    @pallenrupp 6 месяцев назад

    huh? I guess he assumes you're already an expert. Difficult to understand.

    • @alexdworjan
      @alexdworjan  6 месяцев назад

      @pallenrupp Peter, I'm sorry this video wasn't clear. I will admit, Constructed Inventories (just like Smart Inventories) are a more advanced topic that many people, including myself, barely use. Mainly, I would only use Constructed Inventories if I need to combine multiple existing inventories or if I need to divide up an inventory based on limiting access to end-users.
      I like to think of Constructed Inventories in exactly the same way as Dynamic Inventories. They both leverage inventory plugins with source variables (compose, groups, keyed_groups) and they both have a source. While Dynamic Inventories pull directly from a source of truth (Azure, AWS, VMWare, ServiceNow, etc), Constructed Inventories leverage existing inventories within automation controller as that source.
      If you are able to, I would recommend creating your own Constructed Inventory and testing it out. I found that was the easiest way for me to see how the plugin worked and what inventory would be created. Follow the doc for some good examples which is how I got started with the concept docs.ansible.com/ansible/latest/collections/ansible/builtin/constructed_inventory.html
      Please let me know if there is something specific that still isn't clear and I'll do my best to help.