-
Notifications
You must be signed in to change notification settings - Fork 4
Modules Host Import Example
This module are created to easy import hosts from CSV files (or excel sheets kkkk ).
Its based on 2 informations:
- "Data fields" - Fields definition
- "Host data" - Each line have data for populate one host
Try in a test environment:
Data fields:
host.host,host.name,interface.type,interface.ip,group.1,template.1,inventory.location_lat,inventory.location_lon,group.2
Host data
host01,Brasilia,AGENT,127.0.0.1,Brazil,Template Module ICMP Ping,-15.7217175,-48.077446,Country
host02,Brasilia2,AGENT,127.0.0.1,Brazil,Template Module ICMP Ping,-15.7217175,-48.077446,Country
host03,Rio_de_Janeiro,AGENT,127.0.0.1,Brazil,Template Module ICMP Ping,-22.913885,-43.7261813,Country
host04,Fortaleza,AGENT,127.0.0.1,Brazil,Template Module ICMP Ping,-3.790649,-38.5884988,Country
host05,Toronto,AGENT,127.0.0.1,Canada,Template Module ICMP Ping,43.6565353,-79.601038,Country
host06,Brasilia3,AGENT,127.0.0.1,Brazil,Template Module ICMP Ping,-15.7217175,-48.077446,Country
host07,Brasilia4,AGENT,127.0.0.1,Brazil,Template Module ICMP Ping,-15.7217175,-48.077446,Country
host08,Brasilia5,AGENT,127.0.0.1,Brazil,Template Module ICMP Ping,-15.7217175,-48.077446,Country
host09,Brasilia6,AGENT,127.0.0.1,Brazil,Template Module ICMP Ping,-15.7217175,-48.077446,Country
host10,Brasilia7,AGENT,127.0.0.1,Brazil,Template Module ICMP Ping,-15.7217175,-48.077446,Country
After populate the fields and click on "Create hosts" is expected to:
- Create 3 Host groups - Brazil, Canada and Country
- Create 10 hosts (one for each line)