Beispiel #1
0
#!/usr/bin/python
"""foreman sample to use without ovirt(baremetal stuff)"""

import sys
from foreman import Foreman

foremanhost = '192.168.8.223'
foremanport = 443
foremanuser = '******'
foremanpassword = '******'
foremansecure = True
name = 'satriani1'
dns = 'xxx.org'
ip1 = '192.168.8.226'
hostgroup = 'base6'
compute = 'bumblefoot'
profile = '1-Small'

f = Foreman(foremanhost, foremanport, foremanuser, foremanpassword, foremansecure)
f.create(name=name, dns=dns, ip=ip1, hostgroup=hostgroup, compute=compute, profile=profile, build=True)
Beispiel #2
0
#!/usr/bin/python
"""foreman sample to use without ovirt(baremetal stuff)"""

import sys
from foreman import Foreman

foremanhost = '192.168.8.223'
foremanport = 443
foremanuser = '******'
foremanpassword = '******'
foremansecure = True
name = 'satriani1'
dns = 'xxx.org'
ip1 = '192.168.8.226'
hostgroup = 'base6'
compute = 'bumblefoot'
profile = '1-Small'

f = Foreman(foremanhost, foremanport, foremanuser, foremanpassword,
            foremansecure)
f.create(name=name,
         dns=dns,
         ip=ip1,
         hostgroup=hostgroup,
         compute=compute,
         profile=profile,
         build=True)