Problem |
You want to populate your organizational hierarchy. |
---|---|
Solution |
Use the batch scripting functionality of the |
Alternatives |
|
Indigo Insurance needs to create objects -- organizational units (OUs), applications, people and so on -- to reflect the structure of the organization. You want to automate this process.
tarantella object new_object_type
command. For
example, with five organizational units you might have a file
orgunits.txt
containing the following:
--name ".../_ens/o=Indigo Insurance/ou=IT" --name ".../_ens/o=Indigo Insurance/ou=Sales" \ --webtop indigo/sales/standard --name ".../_ens/o=Indigo Insurance/ou=Marketing" \ --webtop indigo/marketing/standard --name ".../_ens/o=Indigo Insurance/ou=Finance" \ --webtop indigo/finance/standard \ --conntype '*:*:SSL' --name ".../_ens/o=Indigo Insurance/ou=Finance/ou=Administration"
You must use the full TFN name for each
object. Do not include the command name (for example,
object new_windowsapp
) as part of each line.
tarantella object script
command to
process them all at once, for example like this:
#!/bin/sh tarantella object script << EOF new_orgunit --file orgunits.txt new_group --file groups.txt new_host --file hosts.txt new_person --file people.txt new_xapp --file xapps.txt new_windowsapp --file windowsapps.txt new_charapp --file charapps.txt EOF
tarantella object script
runs each
command in order, which reads and processes the appropriate file.
tarantella object
subcommand with
tarantella object script
, and you don't have to read in
object details from other files. For example, you can customize
webtops from a batch script by including add_link
and
remove_link
lines.
tarantella passcache
, accept --file
arguments, so you can perform multiple related actions at once.