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

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 199
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 72
match = signproc.expect([pexpect.EOF])
createAppSatChannel.py – create Application custom channel in Satellite
#!/usr/bin/python
"""
This script will create a custom channel for custom applications
"""
import xmlrpclib
SATELLITE_URL = "http://sat-vm.cloud.lab.eng.bos.redhat.com/rpc/api"
TENANT_LOGIN = "tenant"
TENANT_PASSWD = "24^gold"
NAME = 'ourapps'
LABEL = 'ourapps'
SUMMARY = 'Custom Applications'
ARCH = 'channel-x86_64'
PARENT = 'rhel-x86_64-server-5'
"""
Create channel for Application
"""
#open channel
client = xmlrpclib.Server(SATELLITE_URL, verbose=0)
#log into infrastructure org
key = client.auth.login(TENANT_LOGIN, TENANT_PASSWD)
#create key
try:
client.channel.software.create(key, LABEL, NAME, SUMMARY, ARCH, PARENT)
except:
print "Failed to create OurApps Channel"
#log out from infrastructure channel
client.auth.logout(key)
ii) createJavaActkey.py create activation key used for RHEL guest running the
javaApp
#!/usr/bin/python
"""
This script will create the activation key for the RHEL Java Application (tenant org)
"""
import xmlrpclib
73 www.redhat.com
Vista de pagina 72
1 2 ... 68 69 70 71 72 73 74 75 76 77 78 ... 198 199

Comentarios a estos manuales

Sin comentarios