This repository has been archived by the owner on Oct 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
ainfo satprep_install_custominfos
Christian Stankowic edited this page Mar 16, 2015
·
9 revisions
satprep_install_custominfos.py
is used to install or remove system custom keys in/from Spacewalk, Red Hat Satellite or SUSE Manager. These custom keys (kind of variables) are used to assign additional meta information (used by satprep_snapshot.py
) to particular hosts.
#Variables The following variables are created during the installation:
Variable | Description |
---|---|
SYSTEM_OWNER |
Defines the system's owner |
SYSTEM_MONITORING |
Defines whether the system is monitored |
SYSTEM_MONITORING_NOTES |
Defines additional notes to the system's monitoring state (e.g. test system) |
SYSTEM_MONITORING_HOST |
Alternate monitoring server URL |
SYSTEM_MONITORING_HOST_AUTH |
Authentification location for alternate monitoring server |
SYSTEM_MONITORING_NAME |
Defines an alternative monitoring hostname |
SYSTEM_CLUSTER |
Defines whether the system is part of a cluster |
SYSTEM_BACKUP |
Defines whether the system is backed up |
SYSTEM_BACKUP_NOTES |
Defines additional notes to the system's backup state (e.g. test system) |
SYSTEM_ANTIVIR |
Defines whether the system is protected with anti-virus software |
SYSTEM_ANTIVIR_NOTES |
Defines additional notes to the anti-virus state of a system (e.g. anti-virus is implemented using XYZ) |
SYSTEM_PROD |
Defines whehter the system is a production host |
SYSTEM_VIRT_HOST |
Alternate virtual host (e.g. ESXi, vCenter) - use libvirt URI |
SYSTEM_VIRT_HOST_AUTH |
Authentification location for alternate virtual host |
SYSTEM_VIRT_SNAPSHOT |
Defines whether the system should be protected by a snapshot |
SYSTEM_VIRT_VMNAME |
Defines an alternative VM object name |
#Parameters
Parameter | Description |
---|---|
-a / --auth-file
|
defines an auth file to use instead of shell variables - see the [[wiki |
-s / --server
|
defines the server to use |
-q / --quiet
|
don't print status messages to stdout |
-d / --debug
|
enable debugging outputs |
-n / --dry-run
|
only simulates the creation of custom keys |
-f / --force
|
overwrites previously created custom keys with the same name |
-u / --uninstall
|
removes previously installed custom info keys |
#Examples Install custom keys on local machine:
$ ./satprep_install_custominfos.py
Satellite Username: admin
Satellite Password:
INFO:satprep_install_custominfos:successfully created/updated information key 'SYSTEM_OWNER'
INFO:satprep_install_custominfos:successfully created/updated information key 'SYSTEM_MONITORING'
...
Re-install custom keys on local machine using an auth file:
$ ./satprep_install_custominfos.py -f -a authfile
INFO:satprep_install_custominfos:successfully created/updated information key 'SYSTEM_OWNER'
INFO:satprep_install_custominfos:successfully created/updated information key 'SYSTEM_MONITORING'
...
Uninstall custom keys on remote machine:
$ ./satprep_install_custominfos.py -s mysat.localdomain.loc -u
INFO:satprep_install_custominfos:successfully removed information key 'SYSTEM_OWNER'
...