summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/cobbler/snippets/cobbler_register
blob: 8067ec32e6fe575f544615bb31548816ebad7272 (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