
tenant_ak = client.activationkey.create(key, 'tenantMRGGridExec', 'Key for MRG Grd Exec
Nodes', TENANT_PARENT, TENANT_ENTITLE, False)
client.activationkey.addChildChannels(key, tenant_ak, TENANT_CHILDREN)
client.activationkey.addPackageNames(key, tenant_ak, TENANT_PACKAGES)
client.auth.logout(key)
#print out the defined keys
print "MRG Manager activation key: ", infra_ak
print "MRG Grid Exec activation key: ", tenant_ak
d) instMgmt1.sh – start the provisioning of the first management system (the details of
which are in the next section) that:
• configures cobbler to boot system
• moves network to first in boot order
• powers on/ reset the system
• moves network to last in boot order
#!/bin/bash
# source env vars
echo "-"
echo "Sourcing variables"
echo "-"
date
if [[ -x varDefs.sh ]] ; then
source varDefs.sh
elif [[ -x /root/varDefs.sh ]] ; then
source /root/varDefs.sh
elif [[ -x /root/resources/varDefs.sh ]] ; then
source /root/resources/varDefs.sh
elif [[ -x /root/distro/resources/varDefs.sh ]] ; then
source /root/distro/resources/varDefs.sh
else
echo "didn't find a varDefs.sh file"
fi
#prepare cobbler to boot this node
echo "-"
echo "Adding cobbler system entry for Mgmt1"
echo "-"
date
cobbler profile add --name=$MGMT_PROFILE --distro=$MGMT_DISTRO
--kickstart=/root/resources/$MGMT_KS
cobbler system add --name=$MGMT1_NAME --profile=$MGMT_PROFILE
--mac=$MGMT1_MAC --ip=$MGMT1_IP --hostname=MGMT1_NAME
63 www.redhat.com
Comentarios a estos manuales