Uploaded image for project: 'Puppet Task Runner'
  1. Puppet Task Runner
  2. BOLT-510

I want to name nodes in inventory separately from their URL/hostname

    Details

    • Type: Story
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: BOLT 1.5.0
    • Component/s: None
    • Template:
    • Epic Link:
    • Sprint:
      Bolt Kanban
    • Release Notes:
      New Feature
    • Release Notes Summary:
      Aliases can now be added to a node in inventory as an alternate name whereby you may refer to that node.
    • QA Risk Assessment:
      Needs Assessment

      Description

      When using a lot of local vms or docker nodes it would be nice to be able to name node separately from their url to make it easier to refer to individual nodes and make log messages about those nodes more readable.

      Workarounds:

      • For referring to nodes you can create a named subgroup for each node.
      • For ssh nodes you can accomplish this naming in ssh config.

      Solution:

      • Add a new alias option to targets in inventory that accepts a string matching the group/environment regex.
      • get_targets(<alias>) and get_targets(<name>) should both return the target.
      • target should be able to be referenced from other groups by name or the alias
      • inventory validation should fail if there is any conflict between aliases and names
      • if alias is an array the node should be referenceable by any entry.

      ---
      groups:
        - name: group1
          nodes:
            - mytarget
          config:
            transport: ssh
       - name group2
         nodes:
            - alias: mytarget
              name: localhost:2002
      

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  alex Alex Dreyer
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: