Skip to content
Snippets Groups Projects
Commit 538460fc authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

add zone of a host object

parent 68fa2cb1
No related branches found
No related tags found
No related merge requests found
...@@ -59,6 +59,7 @@ typeset cfg_dryrun=false ...@@ -59,6 +59,7 @@ typeset cfg_dryrun=false
if [ -z "$loadfile" ]; then if [ -z "$loadfile" ]; then
MY_NAME=`hostname -f` MY_NAME=`hostname -f`
MY_IP=`_getIpFrontend | head -1` MY_IP=`_getIpFrontend | head -1`
MY_ZONE=
fi fi
IDC_host__cachefile="${dir_data}/${MY_NAME}__host_at-director.txt" IDC_host__cachefile="${dir_data}/${MY_NAME}__host_at-director.txt"
IDC_service__cachefile="${dir_data}/${MY_NAME}__all_defined_services__at-director.txt" IDC_service__cachefile="${dir_data}/${MY_NAME}__all_defined_services__at-director.txt"
...@@ -99,6 +100,7 @@ typeset cfg_dryrun=false ...@@ -99,6 +100,7 @@ typeset cfg_dryrun=false
$ch --set object_type '"object"' $ch --set object_type '"object"'
$ch --set address \"$MY_IP\" $ch --set address \"$MY_IP\"
$ch --set display_name \"$MY_NAME\" $ch --set display_name \"$MY_NAME\"
$ch --set zone \"$MY_ZONE\"
$ch --set icon_image \"/images/os/${MY_OSName}.png\" $ch --set icon_image \"/images/os/${MY_OSName}.png\"
$ch --set icon_image_alt \"${MY_Platform}\:\ ${MY_OSName}\ ${MY_OSMajorVersion}\" $ch --set icon_image_alt \"${MY_Platform}\:\ ${MY_OSName}\ ${MY_OSMajorVersion}\"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment