Ad Widget

Collapse

Multiple HostMetadataItem ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AlbertZeroK
    Junior Member
    • Aug 2019
    • 1

    #1

    Multiple HostMetadataItem ?

    We're looking to add a fair amount of data to Host Meta Data to control auto assignment of templates. However, I'm having difficulties finding solid examples, and had some questions:

    Can I have multiple HostMetadataItem statements? i.e.

    UserParameter=system.custom.uname_all,bash -c "uname -a"
    HostMetadataItem=system.custom.uname_all

    UserParameter=DeploymentType,"Deployed-Via-Ansible"
    #UserParameter=DeploymentType,"Deployed Via Server Central"
    HostMetadataItem=DeploymentType

    or do I need to pack these all into a single HostMetadataItem using a string generated in a UserParameter?

    And If I can use multiple HostMetadataItems, how can I access each when doing an auto discovery to assign a template?


    Finally, are there other strategies I should look at for assigning templates to hosts automatically?
Working...