Red Hat SATELLITE 5.3.0 RELEASE NOTES Informations techniques Page 73

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 199
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 72
1 2 ... 68 69 70 71 72 73 74 75 76 77 78 ... 198 199

Commentaires sur ces manuels

Pas de commentaire