aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/cobbler/snippets/cobbler_register
blob: 87dbb3708183b35c6cf786003fd690bc7a22e36c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Begin cobbler registration
#if $getVar('system_name','') == ''
#if $str($getVar('register_new_installs','')) in [ "1", "true", "yes", "y" ]
if [ -f "/usr/bin/cobbler-register" ]; then
    cobbler-register --server=$server --fqdn '*AUTO*' --profile=$profile_name --batch
fi
#else
# cobbler registration is disabled in /etc/cobbler/settings
#end if
#else
# skipping for system-based installation
#end if
# End cobbler registration