
echo "-"
date
/root/resources/prep_MgmtVMs.sh
#Prep and create RHEL/KVM hosts
echo "-"
echo "Prepping first RHEL host"
echo "-"
date
/root/resources/prep_RHELHost.sh
#Prep and create RHEV hosts
echo "-"
echo "Prepping first RHEV host"
echo "-"
date
/root/resources/prep_RHEVHost.sh
#Prep tenant kickstarts
echo "-"
echo "Import Tenant kickstarts"
echo "-"
date
/root/resources/prep_tenantKS.sh
a) createOrgs.py - Create organization, allocate entitlements, and create
organizational trusts.
#!/usr/bin/python
"""
This script will create the infrastructure and tenant organizations,
divide the entitlements, and define trusts
"""
import xmlrpclib
SATELLITE_URL = "http://sat-vm.cloud.lab.eng.bos.redhat.com/rpc/api"
SATELLITE_LOGIN = "admin"
SATELLITE_PASSWORD = "24^gold"
INFRA_ORG_ENTITLEMENTS = 25
#open channel to satellite
client = xmlrpclib.Server(SATELLITE_URL, verbose=0)
#log in as administrator
key = client.auth.login(SATELLITE_LOGIN, SATELLITE_PASSWORD)
#create the infrastructure org
infraOrg = client.org.create(key, "infrastructure", "infra", "24^gold", "Mr.", "Shadow", "Man",
www.redhat.com 58
Comentarios a estos manuales