Red Hat SATELLITE 5.3.0 RELEASE NOTES Información técnica Pagina 60

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 199
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 59
#Double loop through the org setting trusts
o1 = 0
while o1 < len(Orgs) - 1:
o2 = o1 + 1
while o2 < len(Orgs):
try:
client.org.trusts.addTrust(key, Orgs[o1]['id'], Orgs[o2]['id'])
except:
print "Org:", Orgs[o1]['id'], " failed to add trust for org: ", Orgs[o2]['id']
else:
o2 += 1
o1 += 1
client.auth.logout(key)
b) createDefActKeys.py – create universal default keys for each organizations
#!/usr/bin/python
"""
This script will create default Activation Keys for the infrastructure and tenant organizations
"""
import xmlrpclib
SATELLITE_URL = "http://sat-vm.cloud.lab.eng.bos.redhat.com/rpc/api"
INFRA_LOGIN = "infra"
INFRA_PASSWD = "24^gold"
INFRA_ENTITLE = [ 'monitoring_entitled', 'provisioning_entitled', 'virtualization_host_platform' ]
INFRA_PARENT = 'rhel-x86_64-server-5'
INFRA_CHILDREN = ['rhn-tools-rhel-x86_64-server-5', 'rhel-x86_64-server-vt-5', 'rhel-x86_64-
server-cluster-5', \
'rhel-x86_64-server-cluster-storage-5', 'rhel-x86_64-server-5-mrg-grid-1', \
'rhel-x86_64-server-5-mrg-management-1', 'rhel-x86_64-server-5-mrg-messaging-1' ]
INFRA_PACKAGES = [ 'rhncfg', 'rhncfg-client', 'rhncfg-actions', 'osad', 'ntp' ]
TENANT_LOGIN = "tenant"
TENANT_PASSWD = "24^gold"
TENANT_ENTITLE = [ 'monitoring_entitled', 'provisioning_entitled' ]
TENANT_PARENT = 'rhel-x86_64-server-5'
TENANT_CHILDREN = ['rhn-tools-rhel-x86_64-server-5', 'rhel-x86_64-server-cluster-5', \
'rhel-x86_64-server-cluster-storage-5', \
'rhel-x86_64-server-5-mrg-grid-1', 'rhel-x86_64-server-5-mrg-messaging-1' ]
TENANT_PACKAGES = [ 'rhncfg', 'rhncfg-client', 'rhncfg-actions', 'osad', 'ntp' ]
"""
Create infrastructure key
"""
www.redhat.com 60
Vista de pagina 59
1 2 ... 55 56 57 58 59 60 61 62 63 64 65 ... 198 199

Comentarios a estos manuales

Sin comentarios