Ticket #3 (accepted enhancement)

Opened 2 years ago

Last modified 14 months ago

Ability to import host via command line

Reported by: tdondich Owned by: tdondich
Priority: major Milestone: 2.0
Component: Lilac Configurator Version: Alpha 1
Keywords: Cc:

Description

Mass amounts of servers need to be imported, is there a way to import from command line?

Change History

Changed 2 years ago by tdondich

  • status changed from new to accepted

This is a great feature request. Sounds very good. For the CLI, we'd need ability to add/manage/remove objects. I'd like some help defining the command line interface for this. Should all parameters be provided on the command line, or should there be some sort of text file it reads as input, or should it accept some sort of object definition from STDIN?

Can you help provide a stab at requirements for the CLI and how you think it should work?

Changed 2 years ago by tdondich

run from command line something like the following

./addhost -h hostname -a alias -g group -t template

if host exist...spit out already exist.
if group does not exist spit out error
might want to also add a -ag for add group if dont exist. we have domains that show up and disapear from time to time and would be great to autocreat groups on that.

I try to keep all services attached to the hostgroup so i dont have to do any service imports for a particular service.

./cleanhostgroup -g groupname

my feeling here is that i do a ldapsearch for each server we have or do an export of each server from an external database...if i clean out the host before import, deleted server are automatically removed in this manner.

Changed 2 years ago by tdondich

  • version set to Alpha 1
  • milestone set to Alpha 2

Changed 22 months ago by anonymous

  • milestone Alpha 2 deleted

Milestone Alpha 2 deleted

Changed 22 months ago by tdondich

  • status changed from accepted to assigned
  • milestone set to 1.2

Moving this to 1.2.

Changed 14 months ago by tdondich

  • status changed from assigned to accepted
  • milestone changed from 1.2 to 2.0
Note: See TracTickets for help on using tickets.