??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
ó ßUdac @`s8ddlmZmZmZeZidd6dgd6dd6ZdZd Zdd l Z y*dd l m Z dd l m Z eZWnek r›eZnXdd lmZd„Zd„Zd„Zd d d d d d d d d„Zd„Zd„Zd„Zd„Zd„Zd„Zedkr4eƒnd S(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust communityt supported_bysG --- module: ovirt author: - Vincent Van der Kussen (@vincentvdk) short_description: oVirt/RHEV platform management description: - This module only supports oVirt/RHEV version 3. A newer module M(ovirt_vm) supports oVirt/RHV version 4. - Allows you to create new instances, either from scratch or an image, in addition to deleting or stopping instances on the oVirt/RHEV platform. version_added: "1.4" options: user: description: - The user to authenticate with. required: true url: description: - The url of the oVirt instance. required: true instance_name: description: - The name of the instance to use. required: true aliases: [ vmname ] password: description: - Password of the user to authenticate with. required: true image: description: - The template to use for the instance. resource_type: description: - Whether you want to deploy an image or create an instance from scratch. choices: [ new, template ] zone: description: - Deploy the image to this oVirt cluster. instance_disksize: description: - Size of the instance's disk in GB. aliases: [ vm_disksize] instance_cpus: description: - The instance's number of CPUs. default: 1 aliases: [ vmcpus ] instance_nic: description: - The name of the network interface in oVirt/RHEV. aliases: [ vmnic ] instance_network: description: - The logical network the machine should belong to. default: rhevm aliases: [ vmnetwork ] instance_mem: description: - The instance's amount of memory in MB. aliases: [ vmmem ] instance_type: description: - Define whether the instance is a server, desktop or high_performance. - I(high_performance) is supported since Ansible 2.5 and oVirt/RHV 4.2. choices: [ desktop, server, high_performance ] default: server aliases: [ vmtype ] disk_alloc: description: - Define whether disk is thin or preallocated. choices: [ preallocated, thin ] default: thin disk_int: description: - Interface type of the disk. choices: [ ide, virtio ] default: virtio instance_os: description: - Type of Operating System. aliases: [ vmos ] instance_cores: description: - Define the instance's number of cores. default: 1 aliases: [ vmcores ] sdomain: description: - The Storage Domain where you want to create the instance's disk on. region: description: - The oVirt/RHEV datacenter where you want to deploy to. instance_dns: description: - Define the instance's Primary DNS server. aliases: [ dns ] version_added: "2.1" instance_domain: description: - Define the instance's Domain. aliases: [ domain ] version_added: "2.1" instance_hostname: description: - Define the instance's Hostname. aliases: [ hostname ] version_added: "2.1" instance_ip: description: - Define the instance's IP. aliases: [ ip ] version_added: "2.1" instance_netmask: description: - Define the instance's Netmask. aliases: [ netmask ] version_added: "2.1" instance_rootpw: description: - Define the instance's Root password. aliases: [ rootpw ] version_added: "2.1" instance_key: description: - Define the instance's Authorized key. aliases: [ key ] version_added: "2.1" state: description: - Create, terminate or remove instances. choices: [ absent, present, restarted, shutdown, started ] default: present requirements: - ovirt-engine-sdk-python sœ - name: Basic example to provision from image ovirt: user: admin@internal url: https://ovirt.example.com instance_name: ansiblevm04 password: secret image: centos_64 zone: cluster01 resource_type: template - name: Full example to create new instance from scratch ovirt: instance_name: testansible resource_type: new instance_type: server user: admin@internal password: secret url: https://ovirt.example.com instance_disksize: 10 zone: cluster01 region: datacenter1 instance_cpus: 1 instance_nic: nic1 instance_network: rhevm instance_mem: 1000 disk_alloc: thin sdomain: FIBER01 instance_cores: 1 instance_os: rhel_6x64 disk_int: virtio - name: Stopping an existing instance ovirt: instance_name: testansible state: stopped user: admin@internal password: secret url: https://ovirt.example.com - name: Start an existing instance ovirt: instance_name: testansible state: started user: admin@internal password: secret url: https://ovirt.example.com - name: Start an instance with cloud init information ovirt: instance_name: testansible state: started user: admin@internal password: secret url: https://ovirt.example.com hostname: testansible domain: ansible.local ip: 192.0.2.100 netmask: 255.255.255.0 gateway: 192.0.2.1 rootpw: bigsecret N(tAPI(tparams(t AnsibleModulec C`sUtd|d|d|dtƒ}y|jƒ}Wntk rPtdƒ‚nX|S(Nturltusernametpasswordtinsecures!error connecting to the oVirt API(RtTruettestt Exception(R tuserR tapitvalue((sD/usr/lib/python2.7/site-packages/ansible/modules/cloud/misc/ovirt.pytconnãs ! cC`sÿ| dkr%tjd|d|jjd|ƒdtjd| ƒd|jjddƒddt|ƒd tjd tjd t| ƒƒƒd|ƒ}tj d d t|ƒdt dt d| dddddtj d|j jd| ƒgƒƒ}tj d|ƒ}tjddd|ddƒ}n%| dkrJtjd|d|jjd|ƒdtjd| ƒd|jjddƒdd!t|ƒd tjd tjd t| ƒƒƒd|ƒ}tj d d#t|ƒdt dtd| dddddtj d|j jd| ƒgƒƒ}tj d|ƒ}tjd|d|ddƒ}ny|jj|ƒWntk r}tdƒ‚nX|jjd|ƒ}y|jj|ƒWntk rÆtdƒ‚nXy|jj|ƒWntk rútdƒ‚nXdS($Ntthintnametclustertosttype_ttemplatetBlanktmemoryitcputtopologytcorestsizetwipe_after_deletetsparset interfacetSystemtformattcowtstorage_domainststorage_domaintnic1tnetworktvirtiot preallocatedtraws+Error creating VM with specified parameterssError attaching disksError adding niciii@iii@(R tVMtclusterstgettOperatingSystemt templatestinttCPUt CpuTopologytDiskRtStorageDomainststoragedomainstNetworktNICtFalsetvmstaddRtdiskstnics(Rtvmtypetvmnametzonet vmdisk_sizetvmcpustvmnict vmnetworktvmmemt vmdisk_alloctsdomaintvmcorestvmost vmdisk_inttvmparamstvmdiskt network_nettnic_net1tvm((sD/usr/lib/python2.7/site-packages/ansible/modules/cloud/misc/ovirt.pyt create_vmîs< 6%-1'! 6%-1-!   c C`sŠtjd|d|jjd|ƒd|jjd|ƒdtjdtƒƒ}y|jj|ƒWn!t k r…t d|ƒ‚nXdS(NRRRR?tcloneserror adding template %s( R R/R0R1R3tDisksRR=R>R(RRBtimageRCRN((sD/usr/lib/python2.7/site-packages/ansible/modules/cloud/misc/ovirt.pytcreate_vm_templates N c C`sL|jjd|ƒ} t} d} d} |sW|sW|sW|sW|sW|sW|sW| r`t} n|rÃ|rÃ|rÃtjd|d|d|ƒ}tjddddd|d tƒ} tjƒ} ntj d | gƒ} tj d td |d |ddd|d| d|d| ƒ}tj d| dtj d|ƒƒ}| j d|ƒdS(NRtaddresstnetmasktgatewayteth0t boot_protocoltSTATICtipton_boottnic_configurationtregenerate_ssh_keyst host_nametdomaint user_nametroott root_passwordtnic_configurationst dns_serverstauthorized_ssh_keystuse_cloud_initRRtinitializationtaction(R=R1R<tNoneRR tIPtGuestNicConfigurationtNicstGuestNicsConfigurationtInitializationtActionR/tstart(RRBthostnameR^RYRZRctdnstrootpwtkeyRRRjR@tnictipinfoRkRl((sD/usr/lib/python2.7/site-packages/ansible/modules/cloud/misc/ovirt.pytvm_start s 0 $! $cC`s#|jjd|ƒ}|jƒdS(NR(R=R1tstop(RRBRR((sD/usr/lib/python2.7/site-packages/ansible/modules/cloud/misc/ovirt.pytvm_stop5scC`stt||ƒ}|jjd|ƒ}|jƒx5|jj|ƒjƒjƒdkretjdƒq1W|jƒdS(NRtdowni( t vm_statusR=R1R|t get_statust get_statettimetsleepRt(RRBtstateRR((sD/usr/lib/python2.7/site-packages/ansible/modules/cloud/misc/ovirt.pyt vm_restart;s  'cC`s#|jjd|ƒ}|jƒdS(NR(R=R1tdelete(RRBRR((sD/usr/lib/python2.7/site-packages/ansible/modules/cloud/misc/ovirt.pyt vm_removeEscC`s|jjd|ƒjj}|S(NR(R=R1RR„(RRBR((sD/usr/lib/python2.7/site-packages/ansible/modules/cloud/misc/ovirt.pyRNscC`s:|jjd|ƒ}|dkr*d}n |jƒ}|S(NRtempty(R=R1Rmtget_name(RRBRRR((sD/usr/lib/python2.7/site-packages/ansible/modules/cloud/misc/ovirt.pytget_vmTs    c=C`s¹tdtdtdddddddd d d gƒd tddd tƒdtddd tƒdtddd tddgƒdtddd tdtƒdtddƒdtdddddgƒdtddƒdtddddgƒdtddddddgƒdtddddgƒd tdddd!dd"gƒd#tdddd$gƒd%tdddd&dd'gdd(d&d)gƒd*tdddd+dd,d+gƒd-tdddd.dd/d.gƒd0tdddd1gƒd2tdddddd3gƒd4tdddd5gƒd6tdddd7gƒd8tdddd9gƒd:tdddd;gƒd<tdddd=gƒd>tdddd?gƒd@tddddAgdtƒdBtddddCgƒdDtddƒdEtddƒƒƒ}tsþ|jdFdGƒn|jd}|jd }|jd}|jd}|jd}|jd}|jd}|jd}|jd} |jd} |jd} |jd } |jd#} |jd*}|jd-}|jd0}|jd%}|jd2}|jdD}|jdE}|jd4}|jd6}|jd8}|jd:}|jd<}|jd>}|jd@}|jdB}yt|dH||ƒ}Wn'tk r­}|jdFdI|ƒnX|dkrýt||ƒdJkrà|dkr?yt ||||ƒWn'tk r}|jdFdI|ƒnX|j dKtdFdL||fƒqú|dkrÇy5t ||||| | | | | |||||ƒWn'tk r©}|jdFdI|ƒnX|j dKtdFdM|ƒqú|j dKt dFdNƒqý|j dKt dFdO|ƒn|d kr}t ||ƒdPkr;|j dKt dFdQ|ƒq}t||||||||||ƒ |j dKtdFdR|ƒn|d kråt ||ƒdSkr»|j dKt dFdT|ƒqåt||ƒ|j dKtdFdU|ƒn|d krMt ||ƒdPkr0t||ƒ|j dKtdFdV|ƒqM|j dKt dFdW|ƒn|dkrµt||ƒdJkr‹|j dKt dFdX|ƒqµt||ƒ|j dKtdFdY|ƒndS(ZNt argument_specR„ttypetstrtdefaulttpresenttchoicestabsenttrestarttshutdowntstartedRtrequiredR t instance_nametaliasesRBR tno_logRVt resource_typetnewRRCtinstance_disksizet vm_disksizet instance_cpusiREt instance_nicRFtinstance_networktrhevmRGt instance_memRHt instance_typetserverRAtdesktopthigh_performancet disk_allocRR-tdisk_intR,tidet instance_osRLtinstance_coresRKtinstance_hostnameRut instance_ipR^tinstance_netmaskRYtinstance_gatewayRZtinstance_domainRct instance_dnsRvtinstance_rootpwRwt instance_keyRxRJtregiontmsgs!ovirtsdk required for this modules/apis%sRˆtchangedsdeployed VM %s from template %ssdeployed VM %s from scratchs#You did not specify a resource typesVM %s already existstupsVM %s is already runnings VM %s startedR~sVM %s is already shutdownsVM %s is shutting downsVM %s is restartedsVM %s is not runningsVM %s does not exists VM %s removed(R tdictRt HAS_OVIRTSDKt fail_jsonR RRRŠRWt exit_jsonRSR<RR{R}R…R‡(tmoduleR„RR RBR RVR™RCRDRERFRGRHRIRMRLRARKRJR³RuR^RYRZRcRvRwRxtcte((sD/usr/lib/python2.7/site-packages/ansible/modules/cloud/misc/ovirt.pytmaindsÈ*-!!                              # 5 %      t__main__( t __future__RRRRŒt __metaclass__tANSIBLE_METADATAt DOCUMENTATIONtEXAMPLESR‚t ovirtsdk.apiRt ovirtsdk.xmlR RR¸t ImportErrorR<tansible.module_utils.basicR RRSRWRmR{R}R…R‡RRŠR¾t__name__(((sD/usr/lib/python2.7/site-packages/ansible/modules/cloud/misc/ovirt.pyts6   ˆ?     )     y